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))]; } ?> Quote Link to comment https://forums.phpfreaks.com/topic/55815-random-number-and-words/ 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.