1 2 3 4 5
<?php $array = array ('1','2','3','4'); $index = array_rand($array); echo $array[$index]; ?>