-
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();
?>
-
- favourite fun time is
- Inside block executed...
- Outside block executed...
- Error
- None of these
Correct Option: C
This one works because p is declared independent of fun() also.