PHP 忒聊
綴豖
ヶ輛
DomElement- set_attribute
(no version information, might be only in CVS)
Description
Sets an attribute with name name ot the given value. If the attribute does not exist, it will be created.
瞰赽 1. Setting an attribute
?php $doc = domxml_new_doc("1.0"); $node = $doc- create_element("para"); $newnode = $doc- append_child($node); $newnode- set_attribute("align", "left");?
See also DomElement_get_attribute()
綴豖
れ萸
ヶ輛
DomElement- remove_attribute
奻珨撰
DomElement- tagname