I have two array which the length both of array is same. Let's say that first arrays have tree elements, and the second array also three elements too. This is the first array.
Array
(
[0] => Array
(
[container] => SITU9026744
[seal] => SITC853014
)
[1] => Array
(
[container] => SITU9026744
[seal] => SITC853014
)
[2] => Array
(
[container] => SITU9026744
[seal] => SITC853014
)
)
The second array is :
Array
(
[0] => Array
(
[size] => 40x80x1.15x6M
[weight] => 12800
[piece_per_bundle] => 50
[total_bundle] => 20
[total_piece] => 1000
[total_quantity_(MTs)] => 12800
[tanggal_plan_masuk] => 01-05-2017
[nama_file] => PACKING LIST 68 LOT 1 WITH COLORS MARK.xlsx
[urut] => 1
[row] => 34
)
[1] => Array
(
[size] => 40x60x1.15x6M
[weight] => 10630
[piece_per_bundle] => 50
[total_bundle] => 10
[total_piece] => 500
[total_quantity_(MTs)] => 5315
[tanggal_plan_masuk] => 01-05-2017
[nama_file] => PACKING LIST 68 LOT 1 WITH COLORS MARK.xlsx
[urut] => 2
[row] => 35
)
[2] => Array
(
[size] => 19x19x0.92x6M
[weight] => 3160
[piece_per_bundle] => 100
[total_bundle] => 12
[total_piece] => 1200
[total_quantity_(MTs)] => 3792
[tanggal_plan_masuk] => 01-05-2017
[nama_file] => PACKING LIST 68 LOT 1 WITH COLORS MARK.xlsx
[urut] => 3
[row] => 36
)
)
Then, I need like this :
Array
(
[0] => Array
(
[size] => 40x80x1.15x6M
[weight] => 12800
[piece_per_bundle] => 50
[total_bundle] => 20
[total_piece] => 1000
[total_quantity_(MTs)] => 12800
[tanggal_plan_masuk] => 01-05-2017
[nama_file] => PACKING LIST 68 LOT 1 WITH COLORS MARK.xlsx
[urut] => 1
[row] => 34
[container] => SITU9026744
[seal] => SITC853014
)
[1] => Array
(
[size] => 40x60x1.15x6M
[weight] => 10630
[piece_per_bundle] => 50
[total_bundle] => 10
[total_piece] => 500
[total_quantity_(MTs)] => 5315
[tanggal_plan_masuk] => 01-05-2017
[nama_file] => PACKING LIST 68 LOT 1 WITH COLORS MARK.xlsx
[urut] => 2
[row] => 35
[container] => SITU9026744
[seal] => SITC853014
)
[2] => Array
(
[size] => 19x19x0.92x6M
[weight] => 3160
[piece_per_bundle] => 100
[total_bundle] => 12
[total_piece] => 1200
[total_quantity_(MTs)] => 3792
[tanggal_plan_masuk] => 01-05-2017
[nama_file] => PACKING LIST 68 LOT 1 WITH COLORS MARK.xlsx
[urut] => 3
[row] => 36
[container] => SITU9026744
[seal] => SITC853014
)
)
What key that we can use to push the first key => value array into second key => value.
Please advise.