Re: Sv: Re: New looping method proposal
| From: | Ivo Jansch | Date: | Thu, 22 Nov 2001 07:47:35 +0000 |
| Subject: | Re: Sv: Re: New looping method proposal | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-2029@lists.php.net to get a copy of this message | ||
Hi,
Andrei Zmievski wrote:
{loop source=$data as=$element index=$i} If you want to iterate through an associative array, you'd probably do: {loop source=$data as=$value index=$key}
How are these different, really?They aren't. That's the point of it :)
And it would be this I guess: {loop source=$data as=value index=key} No $ signs in front of variable names.Yes, you're right. Greetings, Ivo -- Ivo Jansch <ivo@ibuildings.nl> ibuildings.nl BV - information technology http://www.ibuildings.nl