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