时间:2021-07-01 10:21:17 帮助过:496人阅读
{loop $XXXX $x}
这是第X组:
1里面有$A $B $C
2里面有$A $B $C
3里面有$A $B $C
4里面有$A $B $C
5里面有$A $B $C
{/loop}
foreach(array_chunk(array(1,2,3,4,5,6,7,8,9,0,1), 5) as $val)
{
foreach($val as $v)
{
echo $v,"\t";
}
echo "\n";
}
1 2 3 4 5
6 7 8 9 0
1