<?php class x { public $foo = 1; function &retRef() { return $this->foo; } } $x = new x(); $bar = $x->retRef(); $bar = 2; var_dump($x->foo, $bar);
You have javascript disabled. You will not be able to edit any code.