what i want to do is find a word from a text file and delete that word using php plzzzzzzzzz help me.........
i can find the word using this codes
$handle = file_get_contents("files.txtl",NULL);
$a="first";
$a=substr_replace($a, '0', 0);
$a=explode(" ",$a);
$c=0;
foreach($a as $y){
if (stristr($handle,"$a[$c]")) $b[]= 'yes';
else $b[]='no';
$c++;
}
if (in_array("no",$b)) echo '<br><br>did not match';
else echo '<br><br>we have a match';