Fonctions DOM XML (PHP 4)
PHP Manual

DomElement->remove_attribute

(PHP 4 >= 4.1.0)

DomElement->remove_attributeSupprime un attribut

Description

bool remove_attribute ( string $name )

Supprime un attribut du noeud courant DomElement.

Liste de paramètres

name

Le nom de l'attribut à supprimer.

Valeurs de retour

Cette fonction retourne TRUE en cas de succès ou FALSE si une erreur survient.

Migration vers PHP 5

Utilisez DOMElement::removeAttribute.


Fonctions DOM XML (PHP 4)
PHP Manual