Random Quotes Creator

Want to make your site more dynamic?

Here's a code that will generate random quotes in your site:


$quote = array(
1 => "Love is blind",
2 => "I'm the king of the world",
3 => "You complete me",
4 => "What we are is what we thought",
5 => "Immortality, take it, it's yours!",
// the quotes may sound corny but they are just examples

srand ((double) microtime() * 1000000);// the random sequence
$randnum = rand(1,5);// note: you can change this, example you changed this to 3,5 it would use only the array 3,4, and 5

echo"$quote[$randnum]";//$quote and $randnum combined together

Your Answers

Your Name:
Your Answers :
<> is a code tag
Enter the verification code:


No Answers..