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)- A6% (2)
- B6% (2)
- C74% (25)
- D15% (5)
Community Discussion
No community discussion yet for this question.