1.

What will be the output of the following PHP code ?
<?php
function fun($str)
{
echo "favourite fun time is ".$str;
function b()
{
echo "Inside block executed...";
}
}
function p()
{
echo "Outside block executed...";
}
p();
?>

A. favourite fun time is
B. Inside block executed...
C. Outside block executed...
D. Error
E. None of these
Answer» D. Error


Discussion

No Comment Found

Related MCQs