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 the old node if the attribute has been replaced.
Raised if the node is readonly.