Smarty {foreach}语句
{foreach from=$arr key=k item=v} {$v} {/foreach}
• Key 键名
• Item 值
• From 数组名
-------------------------------
smarty遍历多为数组:
遍历多维数组 {foreach from= $arr key=key item=value }
{foreach from=$value key=k2 item=v2}
{$k2}<br/>{$v2|truncate:2:''}<br/>
{/foreach}
{/foreach}