标签:code 读取 json data str 函数 content nbsp file
$data = file_get_contents(‘http://www.zgjmwl.com/jinshui/pro_one/ceshi_a.php‘);
var_dump(substr($data,3));
//用php读取json数据;
//substr($data,3)去掉BOM头
$data_arr = json_decode(substr($data,3),true);
echo $data_arr["user"];
标签:code 读取 json data str 函数 content nbsp file
原文地址:http://www.cnblogs.com/jinshui/p/6165354.html