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)- A82% (18)
- B5% (1)
- C5% (1)
- D9% (2)
Community Discussion
No community discussion yet for this question.