looping through variable names

From: Date: Wed, 17 Aug 2005 22:05:07 +0000
Subject: looping through variable names
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12970@lists.php.net to get a copy of this message
Hello, I have examined the manual and am not sure how to proceed. I need to loop through array variable names as if they were variable variables. How would I do this in Smarty? <p>Job Title: {$budget1.jobTitle} Percent of Full Time:{$budget1.percentFullTime}</p> Next section needs to be: <p>Job Title: {$budget2.jobTitle} Percent of Full Time:{$budget2.percentFullTime}</p> And so on until a certain max value is reached, $budgetPos (value is 4, for example, {$budget4.jobTitle). Thanks ever so much!

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