Re: Sv: Re: New looping method proposal
| From: | Konstantin Boshnyaga | Date: | Wed, 21 Nov 2001 10:17:45 +0000 |
| Subject: | Re: Sv: Re: New looping method proposal | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-1999@lists.php.net to get a copy of this message | ||
Hello Andrei,
Wednesday, November 21, 2001, 12:12:39 AM, you wrote:
AZ> The one I like so far is something like:
AZ> {loop source=$array as=$element}
AZ> {/loop}
AZ> However, this doesn't account for the fact that you might want to access
AZ> the array keys as well. Any suggestions?
{loop source=$array value=$element key=$key}
{/loop}
--
Best regards,
Konstantin mailto:ameoba32@mail.ru