PHP. Руководство по PHP. 2005
DOMNode->replaceChild()
HREF="function.dom-domnode-removechild.html"> HREF="function.dom-domnodelist-item.html"> Пред.
DOMNode->replaceChild()
Описание
class DOMNode {DOMNode replaceChild (DOMNode newnode, DOMNode oldnode)
}
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 replacement succeeds the old node is returned.