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自体を含め、残りはすべてそのままです。
どうすればそれを達成できますか?
誰か助けてください...ありがとう