nerdexam
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)
  • A
    2% (1)
  • B
    83% (35)
  • C
    10% (4)
  • E
    5% (2)

Community Discussion

No community discussion yet for this question.

Full 200-550 Practice