DomElement->get_attribute Returns value of attribute Description objectDomElement->get_attribute stringname 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