(PHP 5, PHP 7, PHP 8)
DOMElement::removeAttributeNode — Removes attribute
Removes attribute attr
from the element.
attr
The attribute node.
成功時(shí)返回 true
, 或者在失敗時(shí)返回 false
。
DOM_NO_MODIFICATION_ALLOWED_ERR
Raised if the node is readonly.
DOM_NOT_FOUND_ERROR
Raised if attr
is not an attribute of the element.