“At sign” @ in SimpleXML object?

前端 未结 4 1998
臣服心动
臣服心动 2020-12-04 01:56

This is the output of print_r() run on a typical SimpleXMLElement object:

SimpleXMLElement Object
(
    [@attributes] => Array
        (

            


        
4条回答
  •  北海茫月
    2020-12-04 02:29

    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.

提交回复
热议问题