note 87338 added to functions.returning-values
| From: | kexianbin at diyism dot com | Date: | Mon, 01 Dec 2008 05:08:08 +0000 |
| Subject: | note 87338 added to functions.returning-values | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-147469@lists.php.net to get a copy of this message | ||
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
----
Server IP: 69.147.83.197
Probable Submitter: 64.70.54.16
----
Manual Page -- http://www.php.net/manual/en/functions.returning-values.php
Edit -- https://master.php.net/note/edit/87338
Del: integrated -- https://master.php.net/note/delete/87338/integrated
Del: useless -- https://master.php.net/note/delete/87338/useless
Del: bad code -- https://master.php.net/note/delete/87338/bad+code
Del: spam -- https://master.php.net/note/delete/87338/spam
Del: non-english -- https://master.php.net/note/delete/87338/non-english
Del: in docs -- https://master.php.net/note/delete/87338/in+docs
Del: other reasons-- https://master.php.net/note/delete/87338
Reject -- https://master.php.net/note/reject/87338
Search -- https://master.php.net/manage/user-notes.php