<? $file="base.txt"; # имя файла, где хранятся фразы $array=file($file); echo $array[rand(0,count($array)-1)]; ?>