DomElement->set_attribute
(No version information available, might be only in CVS)
DomElement->set_attribute — Valorizza un attributo
Descrizione
domattribute DomElement->set_attribute
( string $nome
, string $valore
)
Imposta l'attributo chiamato nome al valore fornito. Se l'attributo non esiste lo crea.
Example#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()