DOMNode::cloneNode

(PHP 5, PHP 7)

DOMNode::cloneNode Clones a node

Description

public DOMNode::cloneNode ([ bool $deep ] ) : DOMNode

Creates a copy of the node.

Parameters

deep

Indicates whether to copy all descendant nodes. This parameter is defaulted to false.

Return Values

The cloned node.

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