DomElement->set_attribute
(no version information, might be only in CVS)
DomElement->set_attribute --
Valorizza un attributo
Descrizione
bool
DomElement->set_attribute ( string nome, string valore)
Imposta l'attributo chiamato nome al valore
fornito. Se l'attributo non esiste lo crea.
Esempio 1. Valorizzazione di un attributo <?php
$doc = domxml_new_doc("1.0");
$node = $doc->create_element("para");
$newnode = $doc->append_child($node);
$newnode->set_attribute("align", "left");
?> |
|
Vedere anche domelement_get_attribute()