Hello All hope you can help with this.
I want to display Random text but using DEFINES.
ie Defines in a include file =
<?
define ("TITLE", "A Title");
define ("DESCRIPTION", "Page descritption");
?>
Now I would like to display Random quotes. I have tried various ways but cannot get any to work.
like this.
<? srand((float) microtime() * 10000000);
$quote = array("<?TITLE?>", "This is just a test 1", "This is just a test 2");
$echo = array_rand($quote, 3);
?>
<?
//Random quote is chosen by the main variable then by its number
echo $quote[$echo[1]];
?>