note 9803 added to shuffle
| From: | mike at wurld dot co dot uk | Date: | Fri, 24 Nov 2000 17:30:28 +0000 |
| Subject: | note 9803 added to shuffle | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-8107@lists.php.net to get a copy of this message | ||
Just a note about the my_shuffle function above, change count($array) to count($array)-1
Otherwise you'll end up with zero values suffled into your array.
http://www.php.net/manual/function.shuffle.php