<?php function foo(&$val) { $val->b = 1; return $val; } foo($a); var_dump($a);
You have javascript disabled. You will not be able to edit any code.