DOMElement::hasAttributeNS

Checks to see if attribute exists

Description

public bool DOMElement::hasAttributeNS(stringnull $namespace, string $localName)

Indicates whether attribute in namespace namespace named localName exists as a member of the element.

Parameters

namespace

The namespace URI.

localName

The local name.

Return Values

Returns true on success or false on failure.

See Also

  • DOMElement::hasAttribute
  • DOMElement::getAttributeNS
  • DOMElement::setAttributeNS
  • DOMElement::removeAttributeNS