a Smarty equivalent of the php 'for'
| From: | pobox@verysmall.org | Date: | Sun, 18 Sep 2005 19:22:25 +0000 |
| Subject: | a Smarty equivalent of the php 'for' | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-13044@lists.php.net to get a copy of this message | ||
Is there a Smarty equivalent of the php 'for'? I could not find so far. I have an array which I process in a peculiar way, and I just need a simple counter to turn the cycle and stop at some point, which stop I can control from within the cycle. At the moment I use a combination of 'foreach', without using the 'item' and a 'counter' in addition which provides the values I need, but looks primitive and I can't stop it.