Contact: aviboots(AT)netvision.net.il
39,907 questions
51,839 answers
573 users
$filename = 'd:\\data.txt'; $arr = file($filename, FILE_IGNORE_NEW_LINES); if (in_array("php", $arr)) echo "text exists"; else echo "text not exists"; /* run: text exists */