logo       

[SMARTY] Any way to add values in a loop?: msg#00420

php.smarty.general

Subject: [SMARTY] Any way to add values in a loop?

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?


--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise