$File = fopen("arhcivo.txt", "r"); while (!feof($File)) { $Line[] = trim(fgets($File)); } fclose($File);