Kramerica Industries, LLC

Random Quote Example in PHP

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

The answer is in the code.
Murray


<?php
echo '<p>';
switch (rand(1,4)) {
case 1:  echo 'The answer is in the code.<br>Murray';	break;
case 2:  echo 'Drink Beer.<br>Pablo';		break;
case 3:  echo 'Buy a bigger monitor.<br>Kram';	break;
case 4:  echo 'I see a gray box.<br>Gary';	break;
}
echo </p>
?>