accessing an array var with a variable name

From: Date: Thu, 20 Oct 2005 14:17:23 +0000
Subject: accessing an array var with a variable name
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-13100@lists.php.net to get a copy of this message
Thank you for help provided in the past. This time, I am using the section tag and would like to access an array using the $smarty.section.name.index variable (see the ??? below). -------------------------------- {section name=ill start=1 loop=$num+1 step=1} <p>Job Title {$smarty.section.ill.index} {if !empty($errors.budget?????.baseSalAmt)}<span id="errortext">{$errors.budget?????.baseSalAmt}</span>{/if} {/section} ---------------------------- ?????? is where I would like for the $smarty.section.ill.index to go, for example {$errors.budget2.baseSalAmt}. How would I access this array variable dynamically?

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