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

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -