Zend
200-530 · Question #454
What will be the output of the following code snippet? <?php $my_array = array(1 => 'a', 2 => 'b'); print_r($my_aray); ?> Each correct answer represents a complete solution. Choose all that apply.
The correct answer is B. It will show a blank screen. C. It will show an error message. See the full explanation below for the reasoning.
Question
What will be the output of the following code snippet? <?php $my_array = array(1 => 'a', 2 => 'b'); print_r($my_aray); ?> Each correct answer represents a complete solution. Choose all that apply.
Options
- Abool(true)
- BIt will show a blank screen.
- CIt will show an error message.
- DArray ([1] => a [2] => b)
How the community answered
(35 responses)- A17% (6)
- B74% (26)
- D9% (3)
Community Discussion
No community discussion yet for this question.