<?php class Foo { public $params = array(); function test() { $value = 6; $this->params[] = &$value; var_dump($this->params); } } $foo = new Foo(); $foo->test();
You have javascript disabled. You will not be able to edit any code.