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

search for in the

DOMDocument::createAttributeNS> <DOMDocument::__construct
Last updated: Fri, 20 May 2011

view this page in

DOMDocument::createAttribute

(PHP 5)

DOMDocument::createAttributeCrear nuevo attribute

Descripción

DOMAttr DOMDocument::createAttribute ( string $name )

Esta función crea una nueva instancia de la clase DOMAttr. Este nodo no se mostrará en el documento a no ser que sea insertado con (p.e.j.) DOMNode->appendChild().

Parámetros

name

El nombre del atributo.

Valores devueltos

El nuevo DOMAttr o FALSE si ha ocurrido un error.

Errores/Excepciones

DOM_INVALID_CHARACTER_ERR

Lanzado si name contiene un carácter inválido.

Ver también



add a note add a note User Contributed Notes DOMDocument::createAttribute
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites