Manual do PHP
Anterior |  | Próxima

# DomElement->get_attribute

(no version information, might be only in CVS)

DomElement->get_attribute -- Returns value of attribute

## Description

object DomElement->get_attribute ( string name)

Returns the attribute with name name of the current node.

(PHP >= 4.3 only) If no attribute with given name is found, an empty string is returned.

See also domelement_set_attribute()

Anterior | Principal | Próxima
DomElement->get_attribute_node | Acima | DomElement->get_elements_by_tagname