dimanche 29 octobre 2017

php value from random function to stay same after page refresh

is there a way that when I use the random function to get a list of random strings to display, it will stay even after i refreshed the page?

Such as this code:

$a = array("red","green","blue","yellow","brown");
while (............){
    $random_keys = array_rand($a);
    echo $random_keys;
}




Aucun commentaire:

Enregistrer un commentaire