|
PHP5中文手册
DomElement->set_attribute()(No version information available, might be only in CVS) DomElement->set_attribute() — Sets the value of an attribute 说明DomElement
DomAttribute set_attribute
( string $name
, string $value
)
Sets an attribute with name name to the given value . 参数
返回值Returns the old DomAttribute node, or the new one if you are creating the attribute for the first time. 范例
Example#1 Setting an attribute
<?php Migrating to PHP 5 |