Apply math to count result
| From: | Bryan Roach | Date: | Fri, 09 Feb 2007 11:11:41 +0000 |
| Subject: | Apply math to count result | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-13674@lists.php.net to get a copy of this message | ||
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!