<?php class A { public $b = 2; function &a() { return $this->b; } } $o = new A(); $b = &$o->a(); $b = 3; var_dump($o);
You have javascript disabled. You will not be able to edit any code.