<?php $dosya='arama.txt'; $file=file($dosya); foreach($file as $x){ $dizi=str_word_count($x,1); $toplam=count($dizi); echo $dizi[mt_rand(0,$toplam-1)]; } ?>