{* this example will print out all the values of the $custid array *}
{section name=customer loop=$custid}
id: {$custid[customer]}<br>
{/section}OUTPUT:id: 1000<br>
id: 1001<br>
id: 1002<br>
{section name=customer loop=$custid}
id: {$custid[customer]}<br>
{/section}OUTPUT:id: 1000<br>
id: 1001<br>
id: 1002<br>
<{ section name="sale_time" loop=$pkgSaleTimeArray start=11 step=12 }>
<option value="<{ $pkgSaleTimeArray[sale_time] }>"><{ $pkgSaleTimeArray[sale_time]/12 }>年1</option>
<{ /section >}
最后的section结束用的是“>}”,应该是“}>”