标签:
1 foreach ($records as $k => $v) { 2 foreach ($records as $m => $n) { 3 if ($v[‘days‘] == $n[‘days‘]) { 4 $arr[$n[‘days‘]][$n[‘work‘]][$n[‘time‘]] = $n[‘num‘]; 5 } 6 } 7 }
PHP三维数组拼装
原文地址:http://www.cnblogs.com/Skrillex/p/5509588.html