nerdexam
Zend

200-530 · Question #516

What will be the output of the following PHP code snippet? <?php $array = array (1.1 => '1', 1.2 => '1'); echo count ($array); ?>

The correct answer is A. 1. See the full explanation below for the reasoning.

Question

What will be the output of the following PHP code snippet? <?php $array = array (1.1 => '1', 1.2 => '1'); echo count ($array); ?>

Options

  • A1
  • B2
  • C0
  • DThe script will throw an error message.

How the community answered

(22 responses)
  • A
    82% (18)
  • B
    5% (1)
  • C
    5% (1)
  • D
    9% (2)

Community Discussion

No community discussion yet for this question.

Full 200-530 Practice