DOMNode::replaceChild
DOMNode::replaceChild
(PHP 5, PHP 7)
DOMNode::replaceChild — Replaces a child
Description
public DOMNode DOMNode::replaceChild ( DOMNode $newnode , DOMNode $oldnode )
This function replaces the child oldnode
with the passed new node. If the newnode
is already a child it will not be added a second time. If the replacement succeeds the old node is returned.
Parameters
-
newnode
-
The n