DOMChildNode::replaceWith
(PHP 8)
DOMChildNode::replaceWith — Replaces the node with new nodes
Beschreibung
Replaces the node with new nodes
.
A combination of DOMChildNode::remove() and DOMChildNode::append().
Parameter-Liste
-
nodes
-
The replacement nodes.
Rückgabewerte
Es wird kein Wert zurückgegeben.
Siehe auch
- DOMChildNode::after() - Adds nodes after the node
- DOMChildNode::before() - Adds nodes before the node
- DOMChildNode::remove() - Removes the node
- DOMNode::replaceChild() - Replaces a child