DOMElement::hasAttribute

Checks to see if attribute exists

Description

public bool DOMElement::hasAttribute(string $qualifiedName)

Indicates whether attribute named qualifiedName exists as a member of the element.

Parameters

qualifiedName

The attribute name.

Return Values

Returns true on success or false on failure.

See Also

  • DOMElement::hasAttributeNS
  • DOMElement::getAttribute
  • DOMElement::setAttribute
  • DOMElement::removeAttribute