note 113188 added to function.array-shift
| From: | Alex | Date: | Tue, 10 Sep 2013 13:27:58 +0000 |
| Subject: | note 113188 added to function.array-shift | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-196214@lists.php.net to get a copy of this message | ||
Fastest way to get the first array's value without removing this one from the original array.
$value = array_shift(array_values($yourArray));
----
Server IP: 69.147.83.199
Probable Submitter: 109.20.35.136
----
Manual Page -- http://php.net/manual/en/function.array-shift.php
Edit -- https://master.php.net/note/edit/113188
Del: integrated -- https://master.php.net/note/delete/113188/integrated
Del: useless -- https://master.php.net/note/delete/113188/useless
Del: bad code -- https://master.php.net/note/delete/113188/bad+code
Del: spam -- https://master.php.net/note/delete/113188/spam
Del: non-english -- https://master.php.net/note/delete/113188/non-english
Del: in docs -- https://master.php.net/note/delete/113188/in+docs
Del: other reasons-- https://master.php.net/note/delete/113188
Reject -- https://master.php.net/note/reject/113188
Search -- https://master.php.net/manage/user-notes.php