参考这篇文章

返回来的json文件,需要使用json_decode($json, true)来转成数组使用,不使用true的话会变成一个对象。

$jsondata = json_decode($data, true);
print_r($jsondata);
最后编辑:2021年01月05日 ©著作权归作者所有

发表评论