用foreach来代替啊
利用foreach呈现
tpl:
{foreach key=key1 item=item1 from=$array1}
{$key1}=>{$item1}
{/foreach}php:
$array1=array("1"=>"polo","2"=>"kevin","3"=>"steven");
利用foreach呈现
tpl:
{foreach key=key1 item=item1 from=$array1}
{$key1}=>{$item1}
{/foreach}php:
$array1=array("1"=>"polo","2"=>"kevin","3"=>"steven");
{$a[index][0]}
{$a[index][1]}
{$a[index][2]}
{/section}