Run ❯
Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
color = 'red'; $obj->amount = 5; $copy = clone $obj; print_r($copy); ?>
MyClass Object ( [color] => red [amount] => 5 )