while (!feof($file)) {
$string = fgets($file);
echo "$string";
}
これで最後の行まで表示されるのですがForで書き換えた場合はどうなりますか?
最後までいかず10行まで表示とか