9 ms·Even simpler, and handles the different new line characters: $l = file('in.txt', FILE_IGNORE_NEW_LINES);by astrodev 10y agoEven simpler, and handles the different new line characters: $l = file('in.txt', FILE_IGNORE_NEW_LINES);