testing if array has elements
| From: | Andreas GOetz | Date: | Fri, 01 Oct 2004 11:12:51 +0000 |
| Subject: | testing if array has elements | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-11840@lists.php.net to get a copy of this message | ||
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