1.

What will be the output of the following PHP code ?
<?php
$t = 2;
function calculation()
{
echo $GLOBALS['t'];
$t++;
}
calculation();
calculation();
calculation();
?>

A. Error
B. 2
C. 22
D. 222
E. None of these
Answer» E. None of these


Discussion

No Comment Found

Related MCQs