Re: testing if array has elements
| From: | Andreas Goetz | Date: | Fri, 01 Oct 2004 11:16:31 +0000 |
| Subject: | Re: testing if array has elements | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11841@lists.php.net to get a copy of this message | ||
I forgot the praise: http://videodb.sf.net uses Smarty and is
very happy
with it :)
Andi
"Andreas Goetz" <cpuidle@gmx.de> wrote in message
news:20041001111203.20526.qmail@pb1.pair.com...
>I need to test if an array has elements, FAQ says to use $array|@count. Now
>my array is contained in another one:
>
> {if $video.country|@count}
> ...output list of countries
> {/if}
>
> doesn't work- any idea how to do this? helper variable or is it really
> possible in one statement?
>
> Thanks a lot,
> Andi