PHP - Manual: DOMChildNode::replaceWith
2024-12-23
(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.
没有返回值。
官方地址:https://www.php.net/manual/en/domchildnode.replacewith.php