(PHP 5, PHP 7, PHP 8)
DOMElement::removeAttribute — Removes attribute
$qualifiedName
Removes attribute named qualifiedName from the element.
qualifiedName
The name of the attribute.
Returns true on success or false on failure.
true
false
DOM_NO_MODIFICATION_ALLOWED_ERR
Raised if the node is readonly.