Version7 LanguagePHP CategoryFiles / Folders Rating 12345678910 7 (1 votes) DescriptionReads the contents of a text file and places each line as a string item of an array Instructions Code $filename = 'mytextfile.txt'; $docLines = explode("\n", file_get_contents($filename));