note 106260 rejected from control-structures.for by danbrown

From: Date: Sun, 23 Oct 2011 00:21:20 +0000
Subject: note 106260 rejected from control-structures.for by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-184067@lists.php.net to get a copy of this message
Note Submitter: jay dot collier at thecompass dot com ---- 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?

« previous php.notes (#184067) next »