note 87621 deleted from function.array-rand by danbrown
| From: | danbrown@php.net | Date: | Tue, 27 Jan 2009 02:22:55 +0000 |
| Subject: | note 87621 deleted from function.array-rand by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-149821@lists.php.net to get a copy of this message | ||
Note Submitter: admin at jeremyzaretski dot com
----
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];