我有一個(gè) PHP 數(shù)組,我試圖將其分成 2 個(gè)不同的數(shù)組到該特定數(shù)組中。我試圖提取每個(gè)“目的地”和“平衡”的任何值。這是我得到的數(shù)組,Array( [destination_1] => 1 [balance_1] => 1 [destination_2] => 2 [balance_2] => 2 [destination_3] => 3 [balance_3] => 3)我需要像這樣的輸出,Array ( [0] => Array ( [destination_1] => 1 [balance_1] => 1 ) [1] => Array ( [destination_2] => 2 [balance_1] => 2 ) [2] => Array ( [destination_3] => 3 [balance_3] => 3 ) )
如何將數(shù)組的單獨(dú)值放入同一個(gè)數(shù)組中?
料青山看我應(yīng)如是
2023-08-06 10:51:36