Fonctions DOM XML (PHP 4)
PHP Manual

DomNode->attributes

(PHP 4 >= 4.1.0)

DomNode->attributesRetourne la liste des attributs

Description

array DomNode->attributes ( void )

DomNode->attributes() retourne un tableau avec les attributs du noeud si le noeud est de type XML_ELEMENT_NODE.

(PHP >= 4.3 uniquement) Si aucun attribut n'est trouvé, NULL est retourné.


Fonctions DOM XML (PHP 4)
PHP Manual