I have the following class:
stdClass Object
(
[@attributes] => Array
(
[bla] => 1122
)
[element] => Array
(
[bla] => 1122
)
)
I want to reference the @attributes part of the class. It’s easy enough to do it for the “element” one… that would be:
$class->element['bla']
But the same isn’t true for the attribute one. The following doesn’t work:
$class->@attributes['bla']
$class->"@attributes"['bla']
$class->(@attributes)['bla']
How do I call that element?
do