Kramerica Industries, LLC

Random Quote Example in PHP

This PHP script will place a random quote on your page.

Drink Beer.
Pablo


<?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