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