Forum und email

DomElement->remove_attribute()

(No version information available, might be only in CVS)

DomElement->remove_attribute() — Removes attribute

說明

DomElement
bool remove_attribute ( string $name )

Removes an attribute from the current DomElement node.

參數

name

The name of the attribute to remove.

Return值

如果成功則回傳 TRUE,失敗則回傳 FALSE

Migrating to PHP 5

Use DOMElement->removeAttribute().