1.

What will be the output of the following PHP code ?<?php$n1 = 15;$n2 = 18;function Calc(){ $GLOBALS['n2'] = $GLOBALS['n1'] + $GLOBALS['n2'];} Calc();echo $n2;?>

A. 15
B. 18
C. 33
D. Error
E. None of these
Answer» D. Error


Discussion

No Comment Found