DOMChildNode::replaceWith
(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.
返回值
没有返回值。
参见
- DOMChildNode::after() - Adds nodes after the node
- DOMChildNode::before() - Adds nodes before the node
- DOMChildNode::remove() - Removes the node
- DOMNode::replaceChild() - Replaces a child

User Contributed Notes
There are no user contributed notes for this page.
备份地址:http://www.lvesu.com/blog/php/domchildnode.replacewith.php