数据如下:
{"weatherinfo":{"city":"北京","city_en":"beijing","date_y":"2011年2月7日","date":"辛卯年","week":"星期一","fchh":"11","cityid":"101010100","temp1":"5℃~-3℃","temp2":"7℃~-4℃","temp3":"4℃~-4℃","temp4":"5℃~-4℃","temp5":"5℃~-7℃","temp6":"6℃~-4℃","tempF1":"41℉~26.6℉","tempF2":"44.6℉~24.8℉","tempF3":"39.2℉~24.8℉","tempF4":"41℉~24.8℉","tempF5":"41℉~19.4℉","tempF6":"42.8℉~24.8℉","weather1":"阴转多云","weather2":"多云转晴","weather3":"多云","weather4":"多云转晴","weather5":"晴","weather6":"晴","img1":"2","img2":"1","img3":"1","img4":"0","img5":"1","img6":"99","img7":"1","img8":"0","img9":"0","img10":"99","img11":"0","img12":"99","img_single":"2","img_title1":"阴","img_title2":"多云","img_title3":"多云","img_title4":"晴","img_title5":"多云","img_title6":"多云","img_title7":"多云","img_title8":"晴","img_title9":"晴","img_title10":"晴","img_title11":"晴","img_title12":"晴","img_title_single":"阴","wind1":"微风","wind2":"微风","wind3":"微风","wind4":"微风","wind5":"微风","wind6":"微风","fx1":"微风","fx2":"微风","fl1":"小于3级","fl2":"小于3级","fl3":"小于3级","fl4":"小于3级","fl5":"小于3级","fl6":"小于3级","index":"凉","index_d":"天气凉,建议着厚外套加毛衣等春秋服装。年老体弱者宜着大衣、呢外套加羊毛衫。","index48":"冷","index48_d":"天气冷,建议着棉衣、皮夹克加羊毛衫等冬季服装。年老体弱者宜着厚棉衣或冬大衣。","index_uv":"最弱","index48_uv":"最弱","index_xc":"适宜","index_tr":"适宜","index_co":"较不舒适","st1":"4","st2":"-1","st3":"8","st4":"-1","st5":"4","st6":"-3","index_cl":"较适宜","index_ls":"不太适宜"}}
现在要把 北京,beijing,2011年2月7日,这样的数据取出来,php代码如何写,谢谢~!
|