Re: Suggestion: echo function(var)[0];
| From: | Kalle Sommer Nielsen | Date: | Fri, 04 Jun 2010 01:19:51 +0000 |
| Subject: | Re: Suggestion: echo function(var)[0]; | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-48637@lists.php.net to get a copy of this message | ||
Hi Tig
2010/6/4 Tig <tigger.on@gmail.com>:
> Would be at all possible to implement this kind of shortcut?
Its called array-dereferencing and it was proposed countless times,
including by myself. There is an RFC for this[1] and it was planned on
the old PHP6 todo at the PDT[2].
[1] http://wiki.php.net/rfc/functionarraydereferencing
[2] http://wiki.php.net/summits/pdmnotesmay09#php_6
(see point #13)
--
regards,
Kalle Sommer Nielsen
kalle@php.net