Re: [SMARTY] How to count size of array in TPL?
| From: | Bertrand DUNOGIER | Date: | Wed, 27 Nov 2002 18:41:13 +0000 |
| Subject: | Re: [SMARTY] How to count size of array in TPL? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-6576@lists.php.net to get a copy of this message | ||
B> I have 'foreach' loop based on associative array derived from
B> database. I would like to print size of the array (number of rows)
B> before 'foreach' loop. Any ideas?
{$array|@count}