ParentFull threadastrodev·Even simpler, and handles the different new line characters: $l = file('in.txt', FILE_IGNORE_NEW_LINES);View on HN