DOMElement::removeAttribute

(PHP 5, PHP 7, PHP 8)

DOMElement::removeAttributeRemoves attribute

Опис

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

Removes attribute named qualifiedName from the element.

Параметри

qualifiedName

The name of the attribute.

Значення, що повертаються

Повертає true у разі успіху або false в разі помилки.

Помилки/виключення

DOM_NO_MODIFICATION_ALLOWED_ERR

Raised if the node is readonly.

Прогляньте також