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 -

how to prompt save As Box in Excel Interlop c# MVC 4 -

xslt 1.0 - How to access or retrieve mets content of an item from another item? -