note 99580 added to function.fgets

From: Date: Wed, 25 Aug 2010 09:18:25 +0000
Subject: note 99580 added to function.fgets
Groups: php.notes 
Request: Send a blank email to php-notes+get-172037@lists.php.net to get a copy of this message
I don't think this is a Good example: <?php $f = fopen ("fgetstest.php", "r"); $ln= 0; while ($line= fgets ($f)) { ++$ln; printf ("%2d: ", $ln); if ($line===FALSE) print ("FALSE\n"); // if $line is false, the while not run to this line. else print ($line); } fclose ($f); ?> ---- Server IP: 69.147.83.197 Probable Submitter: 58.34.5.107 ---- Manual Page -- http://www.php.net/manual/en/function.fgets.php Edit -- https://master.php.net/note/edit/99580 Del: integrated -- https://master.php.net/note/delete/99580/integrated Del: useless -- https://master.php.net/note/delete/99580/useless Del: bad code -- https://master.php.net/note/delete/99580/bad+code Del: spam -- https://master.php.net/note/delete/99580/spam Del: non-english -- https://master.php.net/note/delete/99580/non-english Del: in docs -- https://master.php.net/note/delete/99580/in+docs Del: other reasons-- https://master.php.net/note/delete/99580 Reject -- https://master.php.net/note/reject/99580 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#172037) next »