(no version information, might be only in CVS)
DomElement_>set_attribute __
Adds new attribute
Description
bool
DomElement_>set_attribute ( string name, string value)
Sets an attribute with name name ot the given
value_ If the attribute does not exist, it will be created_
Ejemplo 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()