我有一個名爲$grouped_types
的數組。當我打印出來它顯示是這樣的:多維數組讀取失敗
Array
(
[XMU_1_1] => Array
(
[0] => Array
(
[port] => 1
[band] =>
[name] => XMU_1_1
)
[1] => Array
(
[port] => 2
[band] =>
[name] => XMU_1_1
)
[2] => Array
(
[port] => 3
[band] =>
[name] => XMU_1_1
)
[3] => Array
(
[port] => 4
[band] =>
[name] => XMU_1_1
)
[4] => Array
(
[port] => 5
[band] =>
[name] => XMU_1_1
)
[5] => Array
(
[port] => 6
[band] =>
[name] => XMU_1_1
)
[6] => Array
(
[port] => 7
[band] =>
[name] => XMU_1_1
)
[7] => Array
(
[port] => 8
[band] =>
[name] => XMU_1_1
)
[8] => Array
(
[port] => 9
[band] =>
[name] => XMU_1_1
)
[9] => Array
(
[port] => 10
[band] =>
[name] => XMU_1_1
)
[10] => Array
(
[port] => 11
[band] =>
[name] => XMU_1_1
)
[11] => Array
(
[port] => 12
[band] =>
[name] => XMU_1_1
)
[12] => Array
(
[port] => 13
[band] =>
[name] => XMU_1_1
)
[13] => Array
(
[port] => 14
[band] => 700
[name] => XMU_1_1
)
[14] => Array
(
[port] => 15
[band] =>
[name] => XMU_1_1
)
[15] => Array
(
[port] => 16
[band] =>
[name] => XMU_1_1
)
)
[DUS_1_1] => Array
(
[0] => Array
(
[port] => A
[band] =>
[name] => DUS_1_1
)
[1] => Array
(
[port] => B
[band] =>
[name] => DUS_1_1
)
[2] => Array
(
[port] => C
[band] =>
[name] => DUS_1_1
)
[3] => Array
(
[port] => D
[band] =>
[name] => DUS_1_1
)
[4] => Array
(
[port] => E
[band] =>
[name] => DUS_1_1
)
[5] => Array
(
[port] => F
[band] =>
[name] => DUS_1_1
)
)
[DUS_1_2] => Array
(
[0] => Array
(
[port] => A
[band] =>
[name] => DUS_1_2
)
[1] => Array
(
[port] => B
[band] =>
[name] => DUS_1_2
)
[2] => Array
(
[port] => C
[band] =>
[name] => DUS_1_2
)
[3] => Array
(
[port] => D
[band] =>
[name] => DUS_1_2
)
[4] => Array
(
[port] => E
[band] =>
[name] => DUS_1_2
)
[5] => Array
(
[port] => F
[band] =>
[name] => DUS_1_2
)
)
)
現在我想這個陣列在一個表格中顯示是這樣的:
XMU_1_1 port XMU_1_1 band
1
2
3
4
5
6
7
8
9
10
11
12
13
14 700
15
16
這是我想爲每一個不同的名字只有一個名字。每個名字都應該有不同的表格。如何取我的數組,以便我可以顯示它爲不同的表?我試過,但我不知道如何獲取這種類型的數組。
_」我嘗試但「_ - 請顯示你已經嘗試過! – Jeff