我有這樣的公共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