DomNode->replace_node
(PHP 4 >= 4.2.0)
DomNode->replace_node —
Replaces node
Описание
(PHP 4.3) This function replaces an existing node with the passed new node. It is not
copied anymore. If newnode
was already inserted in the document
it is first unlinked from its existing context. If the replacement succeeds the old
node is returned.
See also domnode_append_child()