Thread
:
PHP random quote generator script
View Single Post
Sep 23rd, 2005, 7:00 PM
#
5
tempest
Programming Guru
Join Date: Oct 2004
Posts: 1,041
Rep Power:
5
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
View Public Profile
Find More Posts by tempest