Re: Sv: Re: New looping method proposal

From: Date: Wed, 21 Nov 2001 19:24:58 +0000
Subject: Re: Sv: Re: New looping method proposal
References: 1 2 3  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2002@lists.php.net to get a copy of this message
On Wed, 21 Nov 2001, Thies C. Arntzen wrote: > > The one I like so far is something like: > > > > {loop source=$array as=$element} > > {loop source=$array as=$element using=$index} > > {loop source=$array as=$element indexed_by=$index} > > {loop source=$array as=$element thiesomannblabla=$index} > > > something along those lines would be cool. Thieso, I didn't know you used Smarty. :) I think either of these look fine: {loop through=$array as=element key=key} {loop source=$array as=element key=key} The first one is easier to read. -Andrei Commitment, n.: Commitment can be illustrated by a breakfast of ham and eggs. The chicken was involved, the pig was committed.

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