json_decode() stdClass

json_decode()之后得到的是stdClass Object 而不是Array

echo $object['name']; 报错?

$object->name; 就可以获取到啦!

posted @ 2017-06-22 15:44  wendou  阅读(238)  评论(0编辑  收藏  举报