Zend
200-530 · Question #427
What will be the output of the following code? <?php function a(&$a = 19) { $a .= 1; } $b = 6; a($b); echo $b++; ?>
The correct answer is B. 61. See the full explanation below for the reasoning.
Question
What will be the output of the following code? <?php function a(&$a = 19) { $a .= 1; } $b = 6; a($b); echo $b++; ?>
Options
- AThe script will throw an error message
- B61
- C7
- D6
How the community answered
(39 responses)- A10% (4)
- B72% (28)
- C3% (1)
- D15% (6)
Community Discussion
No community discussion yet for this question.