DOMElement::removeAttribute

(PHP 5, PHP 7)

DOMElement::removeAttributeRemoves attribute

Descrição

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

Removes attribute named name from the element.

Parâmetros

name

The name of the attribute.

Valor Retornado

Retorna TRUE em caso de sucesso ou FALSE em caso de falha.

Erros

DOM_NO_MODIFICATION_ALLOWED_ERR

Raised if the node is readonly.

Veja Também