<?php function test(stdClass &$obj) { var_dump($obj); $obj = 'lol'; } $o = new stdClass; $o->prop = 'foo'; test($o); var_dump($o);
You have javascript disabled. You will not be able to edit any code.