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 }
时间: 2024-09-30 06:03:13
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 }