There are several HTML lines:

<div>ПРИВЕТ</div> <div>Пока</div> <div>Добрый день</div> 

How to use PHP to display a random string each time?

    3 answers 3

     $Arr = array( 'Hello', 'Good day!', 'Bye Bye' ); echo $Arr[rand(0, sizeof($Arr)-1)]; echo $Arr[array_rand($Arr)]; 
       $hello=array('ПРИВЕТ','Пока','Добрый день'); echo $hello[rand()%3]; 

        Random phrases are driven into an array and output them using http://www.php.su/functions/?mt-rand