Hi,
I am new to php and need help over very simple script.
$strText = file_get_contents( 'ww.google.com/file.php' );
$strFind = 'word';
$blMatch = false;
if( preg_match( "/$strFind/", $strText ) ) {
$blMatch = true;
$strText = str_replace( $strFind, '', $strText );
}
now in text file content are like this
"word is very usefull and have meaning full things."
Now I want that if the script has find "word is very usefull" it should remove the whole line, not only that particular word.
Anyone can help me in this case?
