<?php function foo() { return array(1,2,3,4,5,6); }echo foo()[4]; // <---- it that
It looks a bit perl-ish indeed but I don't see much trouble in having that it people really need it...
-- Stanislav Malyshev, Zend Products Engineer [EMAIL PROTECTED] http://www.zend.com/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php