note 111897 rejected from function.feof by googleguy
| From: | googleguy@php.net | Date: | Tue, 09 Apr 2013 17:48:09 +0000 |
| Subject: | note 111897 rejected from function.feof by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-194414@lists.php.net to get a copy of this message | ||
Note Submitter: dayanneramosweb at gmail dot com
----
instead to use feof, increase performance using:
$lines = file($filename);
$qtd = count($lines);
for($i=0;$i<$qtd;$i++){
//show or do what you want with the line
echo $lines[$i];
}