|
PHP5中文手册
SimpleXMLElement->attributes()(PHP 5 >= 5.0.1) SimpleXMLElement->attributes() — Identifies an element's attributes 说明SimpleXMLElement
SimpleXMLElement attributes
([ string $ns
[, bool $is_prefix
]] )
This function provides the attributes and values defined within an xml tag.
参数
返回值
范例
Example#1 Interpret an XML string
<?php 上例将输出:
|