DOMElement::hasAttribute
PHP function
Edit on GitHub ✎
(PHP 5, PHP 7, PHP 8)
Checks to see if attribute exists
Description
DOMElement::hasAttribute(string $qualifiedName): bool
Indicates whether attribute named qualifiedName exists as a member of the element.
Parameters
qualifiedNameThe attribute name.
Return Values
Success
See Also
DOMElement::hasAttributeNSDOMElement::getAttributeDOMElement::setAttributeDOMElement::removeAttribute