摘要:
案例1:Theitemattribute<?php$arr = array(1000, 1001, 1002);$smarty->assign('myArray', $arr);?>Template to output$myArrayin an un-ordered list<ul>{foreach from=$myArray item=foo} <li>{$foo}</li>{/foreach}</ul>The above example will output:<ul> <li>100 阅读全文