adding a number to a variable inside a loop

From: Date: Sat, 19 Apr 2003 19:49:24 +0000
Subject: adding a number to a variable inside a loop
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9340@lists.php.net to get a copy of this message
The problem: {section name=rows loop=$data} <tr> <td>{$data[rows]}step:???????</td> </tr> {/section}the output should be 1 step 72 step 143 step 214 step 28I only know how to do this with mathfunction of smarty, but there surely is a easier solution

« previous php.smarty.general (#9340) next »