DOMChildNode::replaceWith
(PHP 8)
DOMChildNode::replaceWith — Replaces the node with new nodes
Description
Replaces the node with new nodes
.
A combination of DOMChildNode::remove() and DOMChildNode::append().
Parameters
-
nodes
-
The replacement nodes.
Return Values
No value is returned.
See Also
- DOMChildNode::after() - Adds nodes after the node
- DOMChildNode::before() - Adds nodes before the node
- DOMChildNode::remove() - Removes the node
- DOMNode::replaceChild() - Replaces a child