<?php class X { var $_x = 0; function set($x) { $this->_x = $x; } function disp() { var_dump($this); } } $x = new X; $a[0] = $x; $x->set(2); $a[0]->disp(); $x->disp();
You have javascript disabled. You will not be able to edit any code.