0
我是一名php初学者。我有这种JSON?如何解析特定的json数组?
{
"rows":
[
["/page1.php","568"],
["/","78"],["/page2.php","4"],
["/page2.php","2"],
["/page3.php","1"],
["/search.php","1"]
]
}
解析JSON我使用
<?php
$json_file = file_get_contents('test.json');
$parsed_json = json_decode($json_file);
?>
但我不知道要分析每个页面和数量。任何人都可以帮助我解决这个肯定的基本问题?
非常感谢
'的var_dump($ parsed_json)' - 这将不再JSON,顺便说一下,它只是一个简单的普通php数组 - 然后按照输出的缩进来查看你需要什么“路径”。 –