RE: [PHP] I Want
| From: | Jason Murray | Date: | Mon, 06 Aug 2001 09:13:48 +0000 |
| Subject: | RE: [PHP] I Want | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-61392@lists.php.net to get a copy of this message | ||
> 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
jasonm@melbourneit.com.au
Web Developer, Melbourne IT
"Work now, freak later!"