Input: $a
as input array
and $b
as formatting array
$a = Array
(
[0] => 1
[1] => 5
[2] => 7
)
$b = Array
(
[0] => 5
[1] => 3
[2] => 4
)
$result = Array
(
[0] => 1,5
[1] => 5,3
[2] => 7,4
)
How do I merge 2 arrays to achive the result above with PHP?