<?php class Foo { private $var; public function __construct(&$var) { $this->var = &$var; } public function dump() { var_dump($this->var); } } $foo = new Foo($id); $id = 'aaaa'; $foo->dump();
You have javascript disabled. You will not be able to edit any code.