Scholar Repository
Home>Manual>Clones a node

Clones a node


DOMNode::cloneNode

(PHP 5)

DOMNode::cloneNodeClones a node

Description

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

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.


Home>Manual>Clones a node