<<< Previous question <<< Question ID#0538.md >>> Next question >>>
What is the output of the following?
$a = 20;
function myfunction($b) {
global $a, $c;
$a = 30;
return $c = ($b + $a);
}
// 140 = (40 + 30) + 70
print myfunction(40) + $c;
- A) 140
- B) 70
- C) 20
- D) null
Answer
Answer: A