DOMElement
PHP Manual

DOMElement::removeAttribute

(PHP 5)

DOMElement::removeAttributeRemoves attribute

Описание

bool DOMElement::removeAttribute ( string $name )

Removes attribute named name from the element.

Параметри

name

The name of the attribute.

Връщани стойности

Връща TRUE при успех или FALSE при неуспех.

Грешки/Изключения

DOM_NO_MODIFICATION_ALLOWED_ERR

Raised if the node is readonly.

Вж. също


DOMElement
PHP Manual