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"); ?> 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 Link to comment https://forums.phpfreaks.com/topic/53683-solved-random-selection-array/#findComment-265361 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.