0
更具體地說,我想將以下數組轉換爲關聯數組。原始數組的索引類似[0],[1],[2],... [n]。我用的功能是Set :: combine Cakephp,但我不能重新創建所需的關聯數組的所有三個級別。重整關聯數組
Array
(
[0] => Array
(
[ACCOUNTS] => Array
(
[description] => A
)
[HEADERS] => Array
(
[description] => B
)
[COLUMNS] => Array
(
[description] => C
[id] => 8
)
)
[1] => Array
(
[ACCOUNTS] => Array
(
[description] => A1
)
[HEADERS] => Array
(
[description] => B1
)
[COLUMNS] => Array
(
[description] => C1
[id] => 9
)
)
)
我希望最終的陣列是以下關聯數組:
Array
(
[A] => Array
(
[B] => Array
(
[C] => 8
)
)
[A1] => Array
(
[B1] => Array
(
[C1] => 9
)
)
)
我無法重新創建上面的陣列的所有(3)的水平。
更具體。我知道,你是如何獲得上述價值的。這些價值。 – user909058