DOM XML (PHP 4) Функции
PHP Manual

DomElement->remove_attribute

(PHP 4 >= 4.1.0)

DomElement->remove_attribute Removes attribute

Описание

bool remove_attribute ( string $name )

Removes an attribute from the current DomElement node.

Параметри

name

The name of the attribute to remove.

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

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

Migrating to PHP 5

Use DOMElement::removeAttribute.


DOM XML (PHP 4) Функции
PHP Manual