PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

DomElement->tagname()> <DomElement->set_attribute_node()
Last updated: Fri, 04 Jul 2008

view this page in

DomElement->set_attribute()

(No version information available, might be only in CVS)

DomElement->set_attribute() — Define el valor de un atributo

Descripción

DomElement
DomAttribute set_attribute ( string $nombre , string $valor )

Define un atributo con el nombre nombre con el valor dado.

Lista de parámetros

nombre

El nombre del atributo. Si este atributo no existe, será creado.

valor

El valor del atributo.

Valores retornados

Devuelve el nodo DomAttribute antiguo, o el nuevo si está creando el atributo por primera vez.

Ejemplos

Example #1 Definición de un atributo

<?php
$doc 
domxml_new_doc("1.0");
$nodo $doc->create_element("para");
$nodo_nuevo $doc->append_child($nodo);
$nodo_nuevo->set_attribute("align""left");
?>

Migración a PHP 5

Use Material que falta.



add a note add a note User Contributed Notes
DomElement->set_attribute()
There are no user contributed notes for this page.

DomElement->tagname()> <DomElement->set_attribute_node()
Last updated: Fri, 04 Jul 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites