I'm using the following to generate a random quote on a PHP page and it
works fine:
<?php
$quotes[] = 'quote #1';
$quotes[] = 'quote #2';
$quotes[] = 'quote #3';
$quotes[] = 'etc...';
srand ((double) microtime() * 1000000);
$random_number = rand(0,count($quotes)-1);
echo ($quotes[$random_number]);
?>
My question is how can I modify this so that it would show a single
quote but only every 10th time the page was called? I searched Google to
see if there was a premade script that would do this but all I could
find were ones like I'm already using.
Thanks.