View Single Post
Old Sep 23rd, 2005, 7:00 PM   #5
tempest
Programming Guru
 
tempest's Avatar
 
Join Date: Oct 2004
Posts: 1,041
Rep Power: 5 tempest is on a distinguished road
Send a message via ICQ to tempest Send a message via AIM to tempest Send a message via Yahoo to tempest
An even quicker way of sorting random quotes from a file could be...

[php]
printf("The quote of the day is: <b>%s</b>\n", array_pop(shuffle(file("quotes.txt"))));
[/php]
__________________

tempest is offline   Reply With Quote