This question already has an answer here:
From a json decode, I have an std that has a key called
@MyKey
Note the @
symbol prefix. I'm not sure how to access it because doing:
$item['@MyKey']
Results in
Cannot use object of type stdClass as array
And doing
$item->@MyKey
Results in
syntax error, unexpected '@', expecting T_STRING or T_VARIABLE
</div>