Problem Description
I get a strange error using `json_decode()`. It decodes the data correctly (I saw it using `print_r`), but when I try to access to information inside the array I get:
```lang-none
Fatal error: Cannot use object of type stdClass as array in
C:\Users\Dail\software\abs.php on line 108
```
I only tried to do: `$result['context']` where `$result` has the data returned by `json_decode()`
How can I read values inside this array?
AI-Generated Solution
Powered by LMSouq AI · GPT-4.1-mini
Analyzing problem and generating solution…
Was this solution helpful?