Home > PHP > Function > DOM XML (PHP 4) > DomElement->get_attribute_node()

DomElement->get_attribute_node()

DomElement->get_attribute_node - Returns the node of the given attribute

Syntax

DomAttribute DomElement->get_attribute_node (string $name)

Arguments

  • name - The name of the seeked attribute. This parameter is case sensitive.

Description

Returns the node of the given attribute in the current element.

Version

PHP 4.1.0

Return value

Returns the node of the attribute as a DomAttributeor FALSE if no attribute with the given name is found.