Foser Posted May 31, 2007 Share Posted May 31, 2007 I am thinking of making an array style thing, but it selects a random number in the array[number]. How can you do this if the script is something like this: <?php $random array("one", "two", "three", "four"); ?> Quote Link to comment https://forums.phpfreaks.com/topic/53683-solved-random-selection-array/ Share on other sites More sharing options...
gabeg Posted May 31, 2007 Share Posted May 31, 2007 You can try http://us2.php.net/shuffle or http://us2.php.net/array_rand Quote Link to comment https://forums.phpfreaks.com/topic/53683-solved-random-selection-array/#findComment-265361 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.