如何把json结果输出呢

浏览:8991 发布日期:2014/02/11 分类:求助交流 关键字: json
$url  =  'http://api100.duapp.com/weather/?appkey=trialuser&city='.urlencode($name);
        $json = json_decode($url);
                 $str  = file_get_contents($json);
        return $str;
http://api100.duapp.com/weather/?appkey=trialuser&city=深圳得到以下json[{"Title":"深圳天气预报","Description":"","PicUrl":"","Url":""},{"Title":"实况 温度:6℃ 湿度:66﹪ 风速:东北风2级","Description":"","PicUrl":"","Url":""},{"Title":"建议着厚外套加毛衣等服装。年老体弱者宜着大衣、呢外套加羊毛衫。","Description":"","PicUrl":"","Url":""},{"Title":"02月11日 周二 10℃~6℃ 阴 微风","Description":"","PicUrl":"http://discuz.comli.com/weixin/weather/d02.jpg","Url":""},{"Title":"02月12日 周三 11℃~7℃ 小雨 微风","Description":"","PicUrl":"http://discuz.comli.com/weixin/weather/d07.jpg","Url":""},{"Title":"02月13日 周四 11℃~8℃ 小雨 东北风3-4级","Description":"","PicUrl":"http://discuz.comli.com/weixin/weather/d07.jpg","Url":""}]怎么样才能变成深圳天气预报:实况 温度:6℃ 湿度:66﹪ 风速:东北风2级:建议着厚外套加毛衣等服装。年老体弱者宜着大衣、呢外套加羊毛衫
02月11日 周二 10℃~6℃ 阴 微风
02月12日 周三 11℃~7℃ 小雨 微风
02月13日 周四 11℃~8℃ 小雨 东北风3-4级
最佳答案
评论() 相关
后面还有条评论,点击查看>>