
Random Quote Example in PHPThis PHP script will place a random quote on your page.
Drink Beer. <?php $quotes=array( "The answer is in the code.<br>Murray", "Drink Beer..<br>Pablo", "Buy a bigger monitor..<br>Kram", "I see a gray box..<br>Gary", ); echo $quotes[rand(0,count($quotes)-1)]; ?> Script contributed by Gary White |