note 100145 added to function.file
| From: | vinix at nowhere dot org | Date: | Tue, 28 Sep 2010 11:06:13 +0000 |
| Subject: | note 100145 added to function.file | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-172762@lists.php.net to get a copy of this message | ||
I think this example is wrong, because the base index of arrays in PHP is zero, not one.
Thus, the for instruction should be:
for ($i=count($lines)-1;$i>=0;$i--) ................
----
Server IP: 69.147.83.197
Probable Submitter: 80.64.113.3
----
Manual Page -- http://www.php.net/manual/en/function.file.php
Edit -- https://master.php.net/note/edit/100145
Del: integrated -- https://master.php.net/note/delete/100145/integrated
Del: useless -- https://master.php.net/note/delete/100145/useless
Del: bad code -- https://master.php.net/note/delete/100145/bad+code
Del: spam -- https://master.php.net/note/delete/100145/spam
Del: non-english -- https://master.php.net/note/delete/100145/non-english
Del: in docs -- https://master.php.net/note/delete/100145/in+docs
Del: other reasons-- https://master.php.net/note/delete/100145
Reject -- https://master.php.net/note/reject/100145
Search -- https://master.php.net/manage/user-notes.php