Re: Feature request
| From: | Peter Hodge | Date: | Fri, 10 Nov 2006 04:01:04 +0000 |
| Subject: | Re: Feature request | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-26449@lists.php.net to get a copy of this message | ||
--- Stanislav Malyshev <stas@zend.com> 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