Re: How to count size of array in TPL?
| From: | Andr� Rabold | Date: | Thu, 28 Nov 2002 08:29:49 +0000 |
| Subject: | Re: How to count size of array in TPL? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-6579@lists.php.net to get a copy of this message | ||
Doesn't
{$myArray|@count}
work for you?
"Bartekp" <bartekp@2com.pl> schrieb im Newsbeitrag
news:20021127132347.18625.qmail@pb1.pair.com...
> Hello
>
> I have 'foreach' loop based on associative array derived from
> database. I would like to print size of the array (number of rows)
> before 'foreach' loop. Any ideas?
>
> BartekP
>
>