I am in need to open a text file (file.txt) which contains data in the following format
ai bt bt gh ai gh lo ki ki lo
ultimately I want to remo
This might work:
$txt = implode('\n',array_unique(explode('\n', $txt)));