0
我需要打印通過下面的json數據循環的每個值。通過Json循環的foreach循環
{
"Name": "xyz",
"Address": "abc",
"City": "London",
"Phone": "123456"
}
我想的是:
$DecodedFile = json_decode(file_get_contents("file.json"));
foreach ($DecodedFile->{$key} as $value) {
echo "$value <br>";
}