Replaces the node with new nodes

DOMChildNode::replaceWith

(PHP 8)

DOMChildNode::replaceWithReplaces the node with new nodes

說明

public DOMChildNode::replaceWith(DOMNode|string ...$nodes): void

Replaces the node with new nodes. A combination of DOMChildNode::remove() and DOMChildNode::append().

參數

nodes

The replacement nodes.

返回值

沒有返回值。

參見

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *