<?php $array=array("Texto 1","Texto 2","Texto 3"); $rand=rand(0,count($array)-1); echo $array[$rand]; ?>