$col = 4;
$index = 0;
$share_display = array();
foreach($share_list as $share)
{
$mod = $index % $col;
$share_display['col'.$mod][] = $share;
$index++;
}不是很明白 ,,好像这个代码的意思是,将数组分SHARE_LIST打散成四个子数组赋给SHARE_DISPLAY
$index = 0;
$share_display = array();
foreach($share_list as $share)
{
$mod = $index % $col;
$share_display['col'.$mod][] = $share;
$index++;
}不是很明白 ,,好像这个代码的意思是,将数组分SHARE_LIST打散成四个子数组赋给SHARE_DISPLAY
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货