I would like to merge two arrays in a way that values of first array are transformed in first elements of the subarray and values of the second array are transformed in second elements of the subarray. Here my example:
Array01
(
[0] => 41558194
[1] => 44677841
[2] => 44503689
[3] => 40651770
)
Array02
(
[0] => 551
[1] => 546
[2] => 531
[3] => 519
)
mergedArray
(
[0] => Array([0] => 41558194 [1] => 551)
[1] => Array([0] => 44677841 [1] => 546)
[2] => Array([0] => 44503689 [1] => 531)
[3] => Array([0] => 40651770 [1] => 519)
)
What is the most efficient way to do this? Many thanks in advance!