Using shuffle in PHP
shuffle – Shuffle an array
Description
void shuffle ( array array)
This function shuffles (randomizes the order of the elements in) an array. You must use srand() to seed this function.
|
Note: As of PHP 4.2.0, there is no need to seed the random number generator with srand() or mt_srand() as this is now done automatically.
If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.










Comments
No comments yet.
Leave a comment