I want to use strstr(), to delete everything before a word. I already have this here:
$file = file_get_contents('text.txt');
$deleted = strstr($file, 'word');
echo $deleted;
But this, is only for one line! I need, to delete everything before a word on every single line in my txt file.
I hope someone can help me :)