DOMElement::removeAttribute
(PHP 5, PHP 7, PHP 8)
DOMElement::removeAttribute — Removes attribute
说明
Removes attribute named qualifiedName from the element.
参数
qualifiedName-
The name of the attribute.
参见
- DOMElement::hasAttribute() - Checks to see if attribute exists
- DOMElement::getAttribute() - Returns value of attribute
- DOMElement::setAttribute() - Adds new or modifies existing attribute