Mit der Funktion file() bekommst du ein String Array zurück:
z.B.: test.txt
--------------------
hallo
wie geht es
ciao
--------------------
$array=file("test.txt");
==> $array[0]="hallo"
==> $array[1]="wie geht es"
==> $array[2]="ciao"
lg Gerhard