DOMNode::appendChild
DOMNode::hasAttributes
DOMNode
PHP Manual

# DOMNode::cloneNode

(PHP 5)

DOMNode::cloneNode — Clones a node

### Descripción

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

Creates a copy of the node.

### Lista de parámetros

`deep`

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

### Valores retornados

The cloned node.

DOMNode::appendChild
DOMNode::hasAttributes
DOMNode
PHP Manual