<?php class x extends ArrayObject { public function offsetGet($key) { static $i = 0; $i++; if ($i == 1) return $this[$key]; else return 'bla';} } $x = new x(); var_dump($x['test']);
You have javascript disabled. You will not be able to edit any code.