I am using json_decode()
something like:
$myVar = json_decode($data)
Which gives me output like this:
[highlig
If an object begins with @
like:
SimpleXMLElement Object (
[@attributes] => Array (
[href] => qwertyuiop.html
[id] => html21
[media-type] => application/xhtml+xml
)
)
You have to use:
print_r($parent_object->attributes());
because $parent_object->{'@attributes'}
or $parent_object['@attributes']
won't work.