> i want to make a function that read my file line by
> line and word by word to find a certain word , if the
> function return this word it is return true , if not 
> it return false .

if (strstr(implode("", file("filename.txt")), "myword")
{
  echo "File conatined 'myword'<BR>\n";
}
else
{
  echo "File didn't conatin 'myword'<BR>\n";
}

Jason

-- 
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
"Work now, freak later!"

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to