使用
$obj = json_depre($yourJSONString);将其转换为一个对象。
然后使用
foreach($obj->response->docs as $doc)来遍历“文档”。
然后,您可以使用
$doc->student_id和访问字段
$doc->student_name[0]。

使用
$obj = json_depre($yourJSONString);将其转换为一个对象。
然后使用
foreach($obj->response->docs as $doc)来遍历“文档”。
然后,您可以使用
$doc->student_id和访问字段
$doc->student_name[0]。