Re: [SMARTY] complex array
| From: | Jason Sweat | Date: | Tue, 03 Feb 2004 04:36:01 +0000 |
| Subject: | Re: [SMARTY] complex array | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-10919@lists.php.net to get a copy of this message | ||
----- Original Message -----
From: "adwinwijaya" <adwinwijaya@yahoo.com.au>
> what i want to do is to display like
> A contain
> B
> (list of members of B array)
> C
> (list of members of C array)
>
>
> Can i do that in smarty ?
yes
> and how to do that ?
quick and dirty:
{$A|var_export:true}
more methodical:
use foreach loops:
http://smarty.php.net/manual/en/language.function.foreach.php