Chris wrote:

That works, but shuffle() is cleaner and then you can echo things
out with a foreach() expression.

http://www.php.net/manual/en/function.shuffle.php

If you're doing a shuffle inside a loop, it's going to be even slower. Might not be an issue for the OP but after your array gets to a certain size, doing that will be a problem.

Inside the loop? I envisioned shuffling the array, then launching
the loop. Probably it is possible to avoid but if shuffle fires
inside the loop, reshuffling seems like it would be an issue.

Reese


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to