我有这样的公共JSON https://raw.github.com/currencybot/open-exchange-rates/master/latest.json,我需要从中提取数据,现在我想是这样的:从JSON数组检索信息与PHP
$input = file_get_contents("https://raw.github.com/currencybot/open-exchange-rates/master/latest.json");
$json = json_decode($input);
echo $json[rates]->EUR;
,但我得到一个空白页,什么建议吗?谢谢 !! Ste
你已经尝试'$ json->汇率─> EUR'? – Gumbo 2012-02-17 09:23:56