阔达灰狼

文章
4
资源
0
加入时间
3年2月3天

php 获取远程json,php远程读取json的方法分析

发送json格式的数据有直接使用get url的方式或者post过来的方式,下文我们为各位总结这两种方式的json数据读取方法。1.直接以文件形式输出的方式代码如下复制代码header("Content-type:text/html;charset=utf-8");function GetCurl($url){$curl = curl_init();curl_setopt($curl,CURLOP...