foreach in reverse

From: Date: Thu, 11 Aug 2005 20:21:18 +0000
Subject: foreach in reverse
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12947@lists.php.net to get a copy of this message
smarties, I was hoping that there was a way to do a foreach in reverse (i.e., starting with the last element and ending with the first). After seeing that there doesn't seem to be, I tried to work out the equivalent of a 'foreach in reverse' with sections and a negative step. Does someone have an example of doing this? -- Matt Warden Miami University Oxford, OH, USA http://mattwarden.com This email proudly and graciously contributes to entropy.

« previous php.smarty.general (#12947) next »