DOMElement::hasAttribute
(PHP 5)
DOMElement::hasAttribute — Checks to see if attribute exists
Beschreibung
public bool DOMElement::hasAttribute
( string
$name
)
Indicates whether attribute named name
exists as a member of the element.
Parameter-Liste
-
name -
The attribute name.
Rückgabewerte
Gibt bei Erfolg TRUE zurück. Im Fehlerfall wird FALSE zurückgegeben.
Siehe auch
- DOMElement::hasAttributeNS() - Checks to see if attribute exists
- DOMElement::getAttribute() - Returns value of attribute
- DOMElement::setAttribute() - Adds new attribute
- DOMElement::removeAttribute() - Removes attribute