There are several HTML lines:
<div>ПРИВЕТ</div> <div>Пока</div> <div>Добрый день</div>
How to use PHP to display a random string each time?
There are several HTML lines:
<div>ПРИВЕТ</div> <div>Пока</div> <div>Добрый день</div>
How to use PHP to display a random string each time?
$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
Source: https://ru.stackoverflow.com/questions/172000/
All Articles