php - Smarty concat/foreach assignment -
i have main array:
$occupations = ['hs','uni','parent'];
and other multiple array of type
$columns_hs;$columns_uni;
etc. want foreach through "$occupations" array , foreach through other arrays cant seem right syntax. here code:
{foreach from=$occupations item=ov key=ok} {foreach from=$columns_`$ov`} {/foreach} {/foreach}
i using smarty 2.
you can try create own varible assign
Comments
Post a Comment