国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

PHP reading json array problem
為情所困
為情所困 2017-05-16 13:14:03
0
1
676
$json='{"results":[{"location":{"id":"WW56FQXV5ZHB","name":"徐州","country":"CN","path":"徐州,徐州,江蘇,中國","timezone":"Asia/Shanghai","timezone_offset":"+08:00"},"now":{"text":"陰","code":"9","temperature":"20"},"last_update":"2017-04-15T22:15:00+08:00"}]}';
$dejson=json_decode($json,true);
echo $dejson[now][text];//錯誤

Please tell me how to read the text value in this array and how to output it, Crab~

為情所困
為情所困

reply all(1)
漂亮男人
echo $dejson['results'][0]['now']['text'];

The code is as above. In fact, you yourselfvar_dump()一下$dejson know how to choose the value you want.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template