Read text file into an array in one function
<? $line_array = file("test.txt"); echo $line_array[0]; ?>