[SMARTY] Apply math to count result
"Bryan Roach" <[email protected]> Fri, 9 Feb 2007 05:11:41 -0600
| Newsgroups | gmane.comp.php.smarty.general |
|---|---|
| Message-ID | <[email protected]> |
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!
--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php