DOMElement::hasAttributeNS
(PHP 5, PHP 7, PHP 8)
DOMElement::hasAttributeNS — Checks to see if attribute exists
Beschreibung
$namespace, string $localName): bool
Indicates whether attribute in namespace namespace
named localName exists as a member of the element.
Parameter-Liste
-
namespace -
The namespace URI.
-
localName -
The local name.
Rückgabewerte
Gibt bei Erfolg true zurück. Bei einem Fehler wird false zurückgegeben.
Siehe auch
- DOMElement::hasAttribute() - Checks to see if attribute exists
- DOMElement::getAttributeNS() - Returns value of attribute
- DOMElement::setAttributeNS() - Adds new attribute
- DOMElement::removeAttributeNS() - Removes attribute

