21,887
社区成员
发帖
与我相关
我的任务
分享
$url = 'http://www.weather.com.cn/data/cityinfo/101070101.html';
$s = file_get_contents($url);
print_r(json_decode($s, true));
Array
(
[weatherinfo] => Array
(
[city] => 沈阳
[cityid] => 101070101
[temp1] => 10℃
[temp2] => -2℃
[weather] => 多云
[img1] => d1.gif
[img2] => n1.gif
[ptime] => 08:00
)
)