note 22269 added to function.shuffle
| From: | eskil at funplanet dot com | Date: | Wed, 12 Jun 2002 16:00:09 +0000 |
| Subject: | note 22269 added to function.shuffle | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-31746@lists.php.net to get a copy of this message | ||
To: david[dont_spam_me]@boeke.com
I endup with the first value in the array last everytime I use your oneliner.
ex:
$arr = array (1,2,3,4,5,6,7,8,9,10);
after your shuffle the last value in the new $arr is always 1... :/
--
http://www.php.net/manual/en/function.shuffle.php
http://master.php.net/manage/user-notes.php?action=edit+22269
http://master.php.net/manage/user-notes.php?action=delete+22269
http://master.php.net/manage/user-notes.php?action=reject+22269