<<< Previous question <<< Question ID#0090.md >>> Next question >>>
Consider the following PHP script:
$a = 5;
$b = 10;
function Mul() {
$GLOBALS['b'] = $GLOBALS['a'] * $GLOBALS['b'];
}
Mul();
print($b);
What will be the output?
- A) 50
- B) Script will throw an error.
- C) 10
- D) 0
Answer
Answer: A