DOMElement::removeAttribute

(PHP 5, PHP 7, PHP 8)

DOMElement::removeAttributeRemoves attribute

Description

public DOMElement::removeAttribute(string $qualifiedName): bool

Removes attribute named qualifiedName from the element.

Parameters

qualifiedName

The name of the attribute.

Return Values

Returns true on success or false on failure.

Errors/Exceptions

DOM_NO_MODIFICATION_ALLOWED_ERR

Raised if the node is readonly.

See Also

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top