note 24158 added to function.shuffle
| From: | tschneider at formel4 dot de | Date: | Thu, 08 Aug 2002 09:28:11 +0000 |
| Subject: | note 24158 added to function.shuffle | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-34516@lists.php.net to get a copy of this message | ||
>Forget shuffle, this function will work well ....
>function ShuffleArray($array)
>......
I have to agree. This works fine with PHP 4.1.2
I have stored complex objects in my array, and when you do a shuffle on this array, the objects will
be killed...
function ShuffleArray works fine, even with complex objects !
--
http://www.php.net/manual/en/function.shuffle.php
http://master.php.net/manage/user-notes.php?action=edit+24158
http://master.php.net/manage/user-notes.php?action=delete+24158
http://master.php.net/manage/user-notes.php?action=reject+24158