DOM
PHP Manual

DOMNode->cloneNode()

(No version information available, might be only in CVS)

DOMNode->cloneNode() — Clones a node

Описание

DOMNode
DOMNode cloneNode ([ bool $deep ] )

Creates a copy of the node.

Список параметров

deep

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

Возвращаемые значения

The cloned node.


DOM
PHP Manual