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