(PHP 5, PHP 7)
Checks to see if attribute exists
public bool DOMElement::hasAttributeNS ( string $namespaceURI, string $localName )
Indicates whether attribute in namespace namespaceURI
named localName
exists as a member of the element.
Parameters:
namespaceURI
The namespace URI.
localName
The local name.
Returns:
Returns TRUE
on success or FALSE
on failure.
See also:
DOMElement::getAttributeNS() -
Please login to continue.