我有一些问题要在 php 中重新排列数组。这就是我所拥有的...
Array
(
[N] => Array
(
[68] => sssssss ttttttt
[69] => uuuuuu vvvvvvvv
)
[D] => Array
(
[05] => zzzzzzzz zzzzzzzz
[07] => tttttttttttt ttttttttttt
)
[P] => Array
(
[88] => yyyyyyy zzzzzzzz
)
[C] => Array
(
[04] => wwwwww wwwwwww
[06] => iiiiiii iiiiiiii
[41] => zzzzzzzzzz zzzzzzzzzz
)
)
我想要的是以下...
Array
(
[N] => Array
(
[68] => sssssss ttttttt
[69] => uuuuuu vvvvvvvv
// only C are added here with N
[04] => wwwwww wwwwwww
[06] => iiiiiii iiiiiiii
[41] => zzzzzzzzzz zzzzzzzzzz
)
[D] => Array
(
[05] => zzzzzzzz zzzzzzzz
[07] => tttttttttttt ttttttttttt
)
[P] => Array
(
[88] => yyyyyyy zzzzzzzz
)
[C] => Array
(
[04] => wwwwww wwwwwww
[06] => iiiiiii iiiiiiii
[41] => zzzzzzzzzz zzzzzzzzzz
)
)
我需要将 C 元素添加到 N 中,而所有剩余的保持原样,包括 C 本身。
我该如何做到这一点?
有人帮忙请...谢谢