PHP Manual
This manual is provided as a courtesy. It is not an official source. Please check php.net for updated information.
(no version information, might be only in CVS)
Adds new attribute node attr to element.
The attribute node.
Returns old node if the attribute has been replaced or NULL.
Raised if the node is readonly.