# DOMNode::cloneNode

(PHP 5, PHP 7, PHP 8)

DOMNode::cloneNode — Clones a node

### Beschreibung

public DOMNode::cloneNode(bool `$deep` = `false`): DOMNode|false

Creates a copy of the node.

### Parameter-Liste

`deep`

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

### Rückgabewerte

The cloned node.

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open