{if count($arr)} do something ... {/if}
But if we want to display array size, we cannot use {count($arr)}, but we can use,
{$arr|@count}
So to call native php function, we can use below format:
{$input_parameter|@native_phpfunction}
Note:
- $input_parameter is smarty variable
- native_php_function, like sizeof, count, round, etc..
No comments:
Post a Comment