Any way to add values in a loop?
| From: | m guckeyson | Date: | Wed, 29 Jan 2003 15:58:58 +0000 |
| Subject: | Any way to add values in a loop? | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-7396@lists.php.net to get a copy of this message | ||
Basically, I'd like to add up all the values of a foreach and display the total after all the values are printed out as rows. I seem to recall seeing a mechanism for doing this, but I can't find it now. Anyone able to jog my memory?