转载请注明出处: http://qiudeqing.com/php/2015/08/19/smarty3.html

foreach

用法:

{foreach $arrayvar as $item}

// 或者

{foreach $arrayvar as $keyvar => $itemvar}