Zend
200-530 · Question #466
Consider the following PHP script: <?php $a = 5; $b = 10; function Mul() { $a =0; $b = $a * $b; } Mul(); print($b); ?> What will be the output of the above script?
The correct answer is D. 10. Zend 200-530 Exam
Functions
Question
Consider the following PHP script: <?php $a = 5; $b = 10; function Mul() { $a =0; $b = $a * $b; } Mul(); print($b); ?> What will be the output of the above script?
Options
- A50
- B0
- CThe script will return an error message.
- D10
How the community answered
(36 responses)- A17% (6)
- B8% (3)
- C3% (1)
- D72% (26)
Explanation
Zend 200-530 Exam
Topics
#variable scope#function scope#local variables#global variables
Community Discussion
No community discussion yet for this question.