tye commented on a Page, Random Text  -  Aug 29, 2005

Using srand() before rand() isn\'t necessary for PHP 4.2.0+. rand() also takes two parameters like this:

rand(min,max)

This code could be simplified to:
print($random_text[rand(0,count($random_text) - 1)]);

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.