note 87338 rejected from functions.returning-values by danbrown
| From: | danbrown@php.net | Date: | Mon, 01 Dec 2008 05:09:23 +0000 |
| Subject: | note 87338 rejected from functions.returning-values by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-147470@lists.php.net to get a copy of this message | ||
Note Submitter: kexianbin at diyism dot com
----
We php programmers indeed need this function
to direct access element of the function/method returned array like this:
echo explode(',','a,b,c')[1];
Sometimes i work around this so:
echo ${!${''}=&explode(',','a,b,c')}[1];
Maybe it's the shortest hack code to mimic direct access,
but it's ugly, we really need to realize it in the php build-in syntax
supporting.
Guys, to vote to impulse this implement of php:
http://bugs.php.net/bug.php?id=23022