Mega Code Archive
Categories
/
Php
/
Class
Using the __clone() Method
var_two = 0; } } $inst_one = new myObject(); $inst_two = clone $inst_one; var_dump($inst_one); var_dump($inst_two); ?>