<<< Previous question <<< Question ID#0652.md >>> Next question >>>
What should go in the missing line ????? below to produce the output shown?
$array_one = array(1,2,3,4,5);
$array_two = array('A', 'B', 'C', 'D', 'E');
/* ????? */
print_r($array_three);
/* Result:
Array
(
[5] => A
[4] => B
[3] => C
[2] => D
[1] => E
)
*/
- A)
$array_three = array_combine(array_reverse($array_one), $array_two);
- B)
$array_three = array_merge(array_reverse($array_one), $array_two);
- C)
$array_three = array_combine($array_one, $array_two);
- D)
$array_three = array_merge($array_one, $array_two);
Answer
Answer: A