nerdexam
National_Instruments

200-500 · Question #188

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

(35 responses)
  • A
    3% (1)
  • B
    14% (5)
  • C
    77% (27)
  • D
    6% (2)

Community Discussion

No community discussion yet for this question.

Full 200-500 Practice