Here is the scenario:
The end var name needs to be
Code: Select all
$n_unit1_lengthThe current base number is determined by a var that is passed through the header called $base_number, in this case $base_number is 1
so here is the general idea but it gives a parse error. I understand why but I do not know how to correct it.
Code: Select all
eval("$n_unit".$base_number."_length")Code: Select all
$m_pan_center=eval("$n_unit".$base_number."_length")