1.

What will be the output of the following PHP code ?
<?php
$p = 15;
$q = 25;
function calc()
{
$q = $GLOBALS['p'] + $GLOBALS['q'];
}
calc();
echo $q;
?>

A. Error
B. 15
C. 25
D. Nothing
E. None of these
Answer» D. Nothing


Discussion

No Comment Found

Related MCQs