Home :: International :: Manuals :: Howto :: FAQ :: Man Pages :: Email Login

 
 

 

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()

 
 
 
 
Google
  Web Linuxinfor   
 

Home :: Copyright :: Privacy :: Credits :: Get a free Linuxinfor Email Account

Document on this page is part of "Manuale PHP". See Index Page for more info about Authorship and Copyright.

1999-2009 Linuxinfor.com. No rights reserved.