Zend
200-530 · Question #40
200-530 Question #40: Real Exam Question with Answer & Explanation
Sign in or unlock 200-530 to reveal the answer and full explanation for question #40. The question stem and answer options stay visible for context.
Question
You have been given the following PHP code snippet: <?php $array = array ('1', '2', '3'); foreach ($array as $key => $value) { $value = 4; } print_r($array); ?> What will be the output? Zend 200-530 Exam
Exhibit
Options
- AArray ( [0] => 4 [1] => 8 [2] => 12 )
- BThe script will throw an error message.
- CArray ( [0] => 1 [1] => 2 [2] => 3 )
- DArray ( [0] => 1 [4] => 2 [8] => 3 )
Unlock 200-530 to see the answer
You've previewed enough free 200-530 questions. Unlock 200-530 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
