-1

What I need is, I want to save an array of different sentences and let one of them randomly display on every pageload. Would that be possible? If yes, then how?

1 Answers1

1
$a = array("red","green","blue","yellow","brown");
$random = array_rand($a);
echo $a[$random] ;
Kamal Saleh
  • 479
  • 1
  • 5
  • 20