Run »
color = 'red'; $obj->amount = 5; $copy = clone $obj; print_r($copy); ?>
MyClass Object ( [color] => red [amount] => 5 )