首页 > Web开发 > 详细

php json 解析有stdClass Object 解决办法

时间:2014-07-31 20:02:37      阅读:750      评论:0      收藏:0      [点我收藏+]

php json 解析有stdClass Object 

mixed json_decode ( string $json [, bool $assoc = false [, int $depth = 512 [, int $options = 0 ]]] )

json

待解码的 json string 格式的字符串。

This function only works with UTF-8 encoded data.

assoc

当该参数为 TRUE 时,将返回 array 而非 object 。

将第二个参数设置为true就可以了

php json 解析有stdClass Object 解决办法,布布扣,bubuko.com

php json 解析有stdClass Object 解决办法

原文:http://www.cnblogs.com/whlives/p/3881058.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!