|
PHP5中文手册
SimpleXMLElement->addAttribute()(PHP 5 >= 5.1.3) SimpleXMLElement->addAttribute() — Adds an attribute to the SimpleXML element 说明SimpleXMLElement
void addAttribute
( string $name
, string $value
[, string $namespace
] )
Adds an attribute to the SimpleXML element. 参数
返回值无返回值。 范例
Example#1 Add attributes and children to a SimpleXML element
<?php |