thinkphp模板中數組的輸出

$this->assign('design_img',$design_img);
//thinkphp 一維數組輸出
<foreach name="design_img" item="vo">
    <input type="text" name="design_img[]"  value="{$vo}"  />
</foreach>
//二維數組
<volist name="design_img" id="design_img">
	{$design_img.name}
</volist>
//多維數組
<volist name="design_img" id="vo">
    {$vo.name}
	<volist name="vo['voo']" id="sub">
	 {$sub.name}
	</volist>
</volist>

版權聲明:本文爲博主原創文章,未經博主容許不得轉載。php

相關文章
相關標籤/搜索