Code Library
Home Submit Free Hosting Link To Us Contacts

PHP Random quotes using arrays

PHP Random quotes using arrays PHP PHP Random quotes using arrays Download (.zip)



<?
$file = "q.txt";
$r = rand(0,count(file($file))-1);
$a = file($file);
echo "$a[$r]";
?>






Tatet