This is the output of print_r() run on a typical SimpleXMLElement object:
print_r()
SimpleXMLElement Object ( [@attributes] => Array ( ) )
What does the @ sign mean?
This is a SimpleXMLElement object. The '@attributes' row is an internal representation of the attributes from the XML element. Use SimpleXML's functions to get data from this object rather than interacting with it directly.
2.1m questions
2.1m answers
60 comments
57.0k users