“在标志处" @在SimpleXML对象中? [英] "At sign" @ in SimpleXML object?

查看:54
本文介绍了“在标志处" @在SimpleXML对象中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是在典型的SimpleXMLElement对象上运行的print_r()的输出:

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

SimpleXMLElement Object
(
    [@attributes] => Array
        (

        )
)

@符号是什么意思?

推荐答案

这是 SimpleXMLElement 对象. "@attributes"行是属性的内部表示形式. XML元素.使用SimpleXML的功能从该对象获取数据,而不是直接与之交互.

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.

这篇关于“在标志处" @在SimpleXML对象中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆