redarrow Posted June 16, 2007 Share Posted June 16, 2007 can you think of a smaller way to get a random number with words. <?php $words=range(a,z); $num=range(1,9); $x=array_merge($words,$num); shuffle($x); for($i=0; $i<7; $i++){ echo $x[(rand(0,6))]; } ?> Link to comment https://forums.phpfreaks.com/topic/55815-random-number-and-words/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.