$quote = array(
1 => "Random Quote 1",
2 => "This is sample quote 2",
3 => "check http://programming-in-php.blogspot.com",
4 => "it really works",
5 => "wooooooooooooooooooooow",
6 => "I am on twitter"
);
$randnum = rand(1,6);
echo "Random Quote - $quote[$randnum]";
?>
PHP scripts and programs for Beginner to Master php programs, php ready to use scripts & functions, css tutorials, html, javascripts, ajax examples for Beginner to Master
Rabu, 23 September 2009
Show random quotes on page every time a page is refreshed
This code can be used to show some random quotes or random links every time the page is loaded or refreshed.
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar