21,886
社区成员
发帖
与我相关
我的任务
分享
<?php
$json_file = "list.json";
$handle = fopen($json_file , "r");
$contents = fread($handle,filesize($json_file));
fclose($handle);
// $js = json_decode($contents);
// print_r $js;
foreach (range(4, 3, -1) as $depth) {
var_dump(json_decode($contents, true, $depth));
}
?>