--- Stanislav Malyshev <[EMAIL PROTECTED]> wrote:

> >>> <?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...

I think 'foo()[4]' is very intuitive (and I have wanted the feature many times
myself).

regards,
Peter


Send instant messages to your online friends http://au.messenger.yahoo.com 

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to