I have a text file contains this data :
947 11106620030 Ancho Khoren MKK6203 Introduction Busy 2,00
948 balblalbllablab
949 balblalbllablab
950 balblalbllablab
951 11106620031 Adagasa Goo MKB6201 Economy Inside 3,00
952 balblalbllablab
953 balblalbllablab
954 balblalbllablab
962 11106620032 The Fumiou Moon MKB6201 The Book of World 3,00
However, I need to remove all the lines containing 'balblabllablab' and just leave tge specific lines of data, as shown below:
947 11106620030 Ancho Khoren MKK6203 Introduction Busy 2,00
951 11106620031 Adagasa Goo MKB6201
Economy Inside 3,00
962 11106620032 The Fumiou Moon MKB6201 The Book of World 3,00
I know how to open and write to a file aswell as closing the file, but i don't know how to remove lines / content using php. How can I remove the unneeded lines from a file using php?