note 13571 added to function.array.php
| From: | delaney dot parker at managestar dot com | Date: | Fri, 22 Jun 2001 03:27:33 +0000 |
| Subject: | note 13571 added to function.array.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-14548@lists.php.net to get a copy of this message | ||
I come from a perl background, and in perl there is a way to get only one element from a function
that returns an array. example (in perl):
$single_var = (myarrayfunc())[0] or
$single_var2 = (myarrayfunc())[3] etc...
Is there something like this in PHP?
Thanks.
http://www.php.net/manual/en/function.array.php