<?php class Foo { public $bar; public $baz; } $a = new Foo(); $b = &$a; $a->bar = 42; $b->baz = 43; var_dump($a, $b);
You have javascript disabled. You will not be able to edit any code.