json_decode() stdClass json_decode()之后得到的是stdClass Object 而不是Array echo $object['name']; 报错? $object->name; 就可以获取到啦!