(PHP 8)
DOMChildNode::replaceWith — Replaces the node with new nodes
Replaces the node with new nodes
.
A combination of DOMChildNode::remove() and DOMChildNode::append().
nodes
The replacement nodes.
Функция не возвращает значения после выполнения.