nerdexam
Zend

200-530 · Question #223

Given the following code, what will be the value of $a? $a = array('a', 'b'); array_push($a, array(1, 2));

The correct answer is D. None of the above. See the full explanation below for the reasoning.

Question

Given the following code, what will be the value of $a? $a = array('a', 'b'); array_push($a, array(1, 2));

Options

  • Aarray('a', 'b', 1, 2)
  • Barray(1, 2, 'a', 'b')
  • Carray(array(1, 2), 'a', 'b')
  • DNone of the above

How the community answered

(43 responses)
  • A
    9% (4)
  • B
    19% (8)
  • C
    2% (1)
  • D
    70% (30)

Community Discussion

No community discussion yet for this question.

Full 200-530 Practice