Re: [SMARTY] Code Snippet was: [SMARTY] To who's right is right??

From: Date: Tue, 18 Jun 2002 17:42:39 +0000
Subject: Re: [SMARTY] Code Snippet was: [SMARTY] To who's right is right??
References: 1 2 3  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-4928@lists.php.net to get a copy of this message
GS> {* There is nothing like a simple foreach loop *} GS> {foreach item=data from=$data} GS> The user {$data.name} id is ==> {$data.id}<br> GS> {/foreach} Err, don't you think that using the same variable for the value and the source array is good ? It's not a relevant sample in my opinion :) Bertrand

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