<?php class Test { function test() { return 1; } } $array = array(1=>new Test, 2=>new Test); var_dump(end($array)->test());
You have javascript disabled. You will not be able to edit any code.