DomElement->remove_attribute
DomElement->set_attribute
DOM XML (PHP 4) Functions
PHP Manual

# DomElement->set_attribute_node

(PHP 4 >= 4.1.0)

DomElement->set_attribute_node — Adds new attribute

### Description

DomElement
DomNode set_attribute_node ( DomNode `$attr` )

Warning

This function is currently not documented; only its argument list is available.

DomElement->remove_attribute
DomElement->set_attribute
DOM XML (PHP 4) Functions
PHP Manual