array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'dom-childnode.replacewith.php', 1 => 'Dom\\ChildNode::replaceWith', 2 => 'Replaces the node with new nodes', ), 'up' => array ( 0 => 'class.dom-childnode.php', 1 => 'Dom\\ChildNode', ), 'prev' => array ( 0 => 'dom-childnode.remove.php', 1 => 'Dom\\ChildNode::remove', ), 'next' => array ( 0 => 'class.dom-comment.php', 1 => 'Dom\\Comment', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/dom/dom/childnode/replacewith.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>
(PHP 8 >= 8.4.0)
Dom\ChildNode::replaceWith — Replaces the node with new nodes
Replaces the node with new nodes.
nodesThe replacement nodes. Strings are automatically converted to text nodes.
No value is returned.
DOM_HIERARCHY_REQUEST_ERRnodes, or if the node to
put in is one of this node's ancestors or this node itself.
DOM_WRONG_DOCUMENT_ERRnodes was created from a different
document than the one that created this node.