我有这个代码:
<?php
$jsonurl = "http://api.wipmania.com/json";
$jsonfgc = file_get_contents($jsonurl);
$json = json_decode($jsonfgc, true);
foreach ( $json["address"] as $address => $country_code )
{
echo $address["country_code"];
}
?>
但是,当我打印出来时,我只会得到“cccccr”。我试着只是echo
ing $country_code
,但我得到了“North AmericaNA-United StatesUS-”。有什么帮助吗?