我得到一个奇怪的错误使用json_decode()。它正确解码数据(我看到它使用print_r),但当我试图访问数组内的信息时,我得到:
Fatal error: Cannot use object of type stdClass as array in
C:\Users\Dail\software\abs.php on line 108
我只想做:$result['context'],其中$result有由json_decode()返回的数据
如何读取这个数组中的值?