我想读JSON六PHP,但无法解码解码JSON无法通过PHP从URL
<?php
$json_url = "http://chartapi.finance.yahoo.com/instrument/1.0/AAPL/chartdata;type=quote;range=5d/json";
$json = file_get_contents($json_url);
$data = json_decode($json, TRUE);
echo "<pre>";
print_r($data);
echo "</pre>";
?>
你也可以找到解码JSONP的一些通用解决方案http://stackoverflow.com/questions/5081557/extract-jsonp-resultset-in-php – Ali
谢谢你的工作 –