Consider the below multi dimension array:
Array
(
[submit] => yes
[id] =>
[booking_id] =>
[booking_type_id] => Array
(
[0] => 171
[1] => 58
)
[value] => Array
(
[0] => 23
[1] => 46
)
)
How do I combine it so that that the booking_type_id and value arrays are in one array with the same values:
Array
(
[new_values] => Array
(
[171] => 23
[58] => 46
)
)
I have tried array_merge and array_combine, but I can't get it to keep the keys? I have also tried to loop through and add to a new array.