<?php class Foo {function bar() {return 42;}} $a = array('foo' => new Foo); var_dump($a['foo']->bar());
You have javascript disabled. You will not be able to edit any code.