1.

What will be the output of the following PHP code ?
<?php
function calc()
{
static $p = 5;
echo $p;
$p++;
}
calc();
calc();
calc();
?>

A. 5
B. 56
C. 567
D. 5678
E. None of these
Answer» D. 5678


Discussion

No Comment Found

Related MCQs