Re: [SMARTY] Apply math to count result
| From: | messju mohr | Date: | Fri, 09 Feb 2007 11:18:18 +0000 |
| Subject: | Re: [SMARTY] Apply math to count result | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-13675@lists.php.net to get a copy of this message | ||
On Fri, Feb 09, 2007 at 05:11:41AM -0600, Bryan Roach wrote:
> This must be simple but the answer is eluding me... I am using
> "{$names|@count}" to count the elements in the $names array. But I
> need to add one to the result before it is displayed. Just throwing a
> " + 1" in there gives an error, so how is it done? Thanks!
{math equation="n+1" n=$names|@count}