在php中请求json接口,对返回的json数据进行解析,提取其中需要的数据
$url = ''; $file_contents=file_get_contents($url); $data = json_decode($file_contents,TRUE); echo $data['status'];
在php中请求json接口,对返回的json数据进行解析,提取其中需要的数据
$url = ''; $file_contents=file_get_contents($url); $data = json_decode($file_contents,TRUE); echo $data['status'];