Thread: PHP Question
View Single Post
Old 09-27-2003, 11:24 PM  
Lane
Will code for food...
 
Join Date: Apr 2001
Location: Buckeye, AZ
Posts: 8,496
$file_Content = file("test.txt");
if (count($file_Content) > 0)
for($i=0;$i<5;$i++)
echo $file_Content[rand(0,count($file_Content)-1)];

short version
__________________
Lane is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote