<?php $file='file.txt'; #твой файл $file = file($file); $count = count($file); for($i=0; $i <= $count; $i++){echo $file[$i].'<br>';} ?>