obj = clone $this; return $this->obj; } } $obj = new MyCloneableClass(); $obj2 = clone $obj; ?>