(no version information, might be only in CVS)
DomNode_>replace_child __
Replaces a child
Description
object
DomNode_>replace_child ( object oldnode, object newnode)
(PHP 4_2) This function replaces the child oldnode
with the passed new node_ If the new node is already a child it
will not be added a second time_ If the old node cannot be found
the function returns FALSE_ If the replacement succeds the old node
is returned_
(PHP 4_3) This function replaces the child oldnode
with the passed newnode, even if the new node already
is a child of the DomNode_ If newnode was already
inserted in the document it is first unlinked from its existing context_
If the old node cannot be found the function returns FALSE_ If the replacement
succeds the old node is returned_ (This behaviour is according to the W3C specs)_
See also domnode_append_child()