<?php $a = new StdClass(); function something($first) { $first->test = "hello"; $b = clone $first; $b->value = 4; var_dump($b); } something($a); var_dump($a);
You have javascript disabled. You will not be able to edit any code.