I've attached some code - I've been wondering this for a while. I did a print_r() on a PHP object called $xml. It has an element called @attributes. I just can't figure out how to access that element.
$xml->@attributes['VER'] doesn't work (throws error).
$xml->{@attributes}['VER'] comes back blank.
$xml->{'@attributes'}['VER'] shows the same as above.
I'm stumped. Any ideas?
SimpleXMLElement Object ( [@attributes] => Array ( [VER] => 3.2 ) )