Home > PHP > Function > DOM XML (PHP 4) > DomElement->remove_attribute()

DomElement->remove_attribute()

DomElement->remove_attribute - Removes attribute

Syntax

bool DomElement->remove_attribute (string $name)

Arguments

  • name - The name of the attribute to remove.

Description

Removes an attribute from the current DomElementnode.

Version

PHP 4.1.0

Return value

Returns TRUE on success or FALSE on failure.