nerdexam
Zend

200-550 · Question #169

What will be the output of the following code? $a = array(0, 1, 2 => array(3, 4)); $a[3] = array(4, 5); echo count($a, 1);

The correct answer is C. 8. See the full explanation below for the reasoning.

Question

What will be the output of the following code? $a = array(0, 1, 2 => array(3, 4)); $a[3] = array(4, 5); echo count($a, 1);

Options

  • A4
  • B5
  • C8
  • DNone of the above

How the community answered

(34 responses)
  • A
    6% (2)
  • B
    6% (2)
  • C
    74% (25)
  • D
    15% (5)

Community Discussion

No community discussion yet for this question.

Full 200-550 Practice