php 请求json数据

在php中请求json接口,对返回的json数据进行解析,提取其中需要的数据

$url = '';
$file_contents=file_get_contents($url);
$data = json_decode($file_contents,TRUE);
echo $data['status'];
原文地址:https://www.cnblogs.com/kyuubee/p/7410040.html