<?php class X extends ArrayObject { public function first() { return $this[0]; } } $array = new X(); $array[] = 'ciao'; $array[] = 'hello'; print_r($array); echo "\n\n"; echo $array->first();
You have javascript disabled. You will not be able to edit any code.