note 106260 added to control-structures.for
| From: | jay dot collier at thecompass dot com | Date: | Sat, 22 Oct 2011 21:19:36 +0000 |
| Subject: | note 106260 added to control-structures.for | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-184065@lists.php.net to get a copy of this message | ||
As a PHP newbie, I need to do something that others may need, too.
Instead of looping up through a set of messages (to $msgCount), I want to loop from the last message
down to the first.
This is the current line:
for($i = 1; $i <= $msgCount; $i++)
What would it be for the reverse loop?
----
Server IP: 69.147.83.197
Probable Submitter: 71.241.205.101
----
Manual Page -- http://www.php.net/manual/en/control-structures.for.php
Edit -- https://master.php.net/note/edit/106260
Del: integrated -- https://master.php.net/note/delete/106260/integrated
Del: useless -- https://master.php.net/note/delete/106260/useless
Del: bad code -- https://master.php.net/note/delete/106260/bad+code
Del: spam -- https://master.php.net/note/delete/106260/spam
Del: non-english -- https://master.php.net/note/delete/106260/non-english
Del: in docs -- https://master.php.net/note/delete/106260/in+docs
Del: other reasons-- https://master.php.net/note/delete/106260
Reject -- https://master.php.net/note/reject/106260
Search -- https://master.php.net/manage/user-notes.php