note 87621 added to function.array-rand
| From: | admin at jeremyzaretski dot com | Date: | Fri, 12 Dec 2008 23:30:55 +0000 |
| Subject: | note 87621 added to function.array-rand | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-148111@lists.php.net to get a copy of this message | ||
If you want to retain the original array's keys using my functions, replace the:
$result[] = $source_array[$index];
With:
$result[$index] = $source_array[$index];
----
Server IP: 69.147.83.197
Probable Submitter: 206.75.15.5
----
Manual Page -- http://www.php.net/manual/en/function.array-rand.php
Edit -- https://master.php.net/note/edit/87621
Del: integrated -- https://master.php.net/note/delete/87621/integrated
Del: useless -- https://master.php.net/note/delete/87621/useless
Del: bad code -- https://master.php.net/note/delete/87621/bad+code
Del: spam -- https://master.php.net/note/delete/87621/spam
Del: non-english -- https://master.php.net/note/delete/87621/non-english
Del: in docs -- https://master.php.net/note/delete/87621/in+docs
Del: other reasons-- https://master.php.net/note/delete/87621
Reject -- https://master.php.net/note/reject/87621
Search -- https://master.php.net/manage/user-notes.php