DOMElement::hasAttributeNS
PHP function
Edit on GitHub ✎
(PHP 5, PHP 7, PHP 8)
Checks to see if attribute exists
Description
DOMElement::hasAttributeNS(string|null $namespace, string $localName): bool
Indicates whether attribute in namespace namespace named localName exists as a member of the element.
Parameters
namespaceThe namespace URI.
localNameThe local name.
Return Values
Success
See Also
DOMElement::hasAttributeDOMElement::getAttributeNSDOMElement::setAttributeNSDOMElement::removeAttributeNS