php / 8.1.5 / domchildnode.replacewith.html /

DOMChildNode::replaceWith

(PHP 8)

DOMChildNode::replaceWithReplaces the node with new nodes

Description

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

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

Parameters

nodes

The replacement nodes.

Return Values

No value is returned.

See Also

© 1997–2021 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/domchildnode.replacewith.php