cloneNode() 공개 메소드

Clones a node.
public cloneNode ( boolean $deep = true ) : Element
$deep boolean Indicates whether to copy all descendant nodes
리턴 Element The cloned node
예제 #1
0
 public function testCloneNode()
 {
     $element = new Element('input');
     $cloned = $element->cloneNode(true);
     $this->assertFalse($element->is($cloned));
 }