php imoprt each line in text file into array code example Example: read file and convert each line in array php $lines = file($filename, FILE_IGNORE_NEW_LINES);