DOM XML Funções
PHP Manual

DomElement->remove_attribute

(PHP 4 >= 4.1.0)

DomElement->remove_attribute Removes attribute

Descrição

bool remove_attribute ( string $name )

Removes an attribute from the current DomElement node.

Parâmetros

name

The name of the attribute to remove.

Valor Retornado

Retorna TRUE em caso de sucesso ou FALSE em falhas.

Migrating to PHP 5

Use DOMElement::removeAttribute.


DOM XML Funções
PHP Manual