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?
Sign in or unlock 200-530 to reveal the answer and full explanation for question #466. The question stem and answer options stay visible for context.
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
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.
Topics
#variable scope#function scope#local variables#global variables