Re: [SMARTY] testing if array has elements

From: Date: Fri, 01 Oct 2004 11:18:15 +0000
Subject: Re: [SMARTY] testing if array has elements
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-11842@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}
{if count($video.country) != 0} .... {/if} should work just fine.... Kind regards Thorsten -- What's on a developers mind? http://blog.siteartwork.de

« previous php.smarty.general (#11842) next »