私は配列を持っています
Array (
Array (
[id] => 1 ,
[schedule_id] => 4 ,
[subject] => Subject 1 ,
[classroom] => 1 ,
[time] => 08:00:00 ,
[col] => 1 ,
[row] => 1
),
Array (
[id] => 2 ,
[schedule_id] => 4 ,
[subject] => Subject 2 ,
[classroom] => 1 ,
[time] => 08:00:00 ,
[col] => 2 ,
[row] => 1
),
Array (
[id] => 3 ,
[schedule_id] => 4 ,
[subject] => Subject 3 ,
[classroom] => 2 ,
[time] => 09:00:00 ,
[col] => 1 ,
[row] => 2
),
Array (
[id] => 4 ,
[schedule_id] => 4 ,
[subject] => Subject 4 ,
[classroom] => 2 ,
[time] => 09:00:00 ,
[col] => 2 ,
[row] => 2
)
)
列と行の値に従って表形式で表示したい
col 1 & row 1 col 2 $ row 1
1st array data 2nd array data
Subject, room, time Subject, room, time
1, 1, 08:00 2, 1, 08:00
col 1 $ row 2 col 2 $ row 2
3rd array data 4th array data
Subject, room, time Subject, room, time
3, 2, 09:00 4, 2, 08:00
私は配列に不慣れであり、このテーブルをソートするためのサポートが必要です。