Zend
200-550 · Question #89
What will be the result of the following operation? $a = array_merge([1,2,3] + [4=>1,5,6]); echo $a[2];
The correct answer is B. 3. See the full explanation below for the reasoning.
Question
What will be the result of the following operation? $a = array_merge([1,2,3] + [4=>1,5,6]); echo $a[2];
Options
- A4
- B3
- C2
- Dfalse
- EParse error
How the community answered
(42 responses)- A2% (1)
- B83% (35)
- C10% (4)
- E5% (2)
Community Discussion
No community discussion yet for this question.