-3
我需要修改以下數組:PHP合併多維數組到一個
Array
(
[category_id] => Array
(
[0] => 21
[1] => 22
)
[amount] => Array
(
[0] => 10000
[1] => 2000
)
)
我需要得到的輸出看起來像這樣:
Array
(
[0] => Array
(
[category_id] => 21
[amount] => 10000
)
[1] => Array
(
[category_id] => 22
[amount] => 2000
)
)
有誰知道如何實現這一目標?
這是基本的數組操作。你嘗試過什麼嗎? – axiac