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.

返回值

没有返回值。

参见

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top