-
What will be the output of the following PHP code ?
<?php
function fun($str)
{
echo "Hello ".$str;
function m()
{
echo "\nBlock m executed...";
}
}
fun("Interview Mania");
m();
?>
-
- Error
- Hello Interview Mania
- Block m executed...
- Hello Interview Mania
Block m executed... - None of these
Correct Option: D
m is declared as fun() is executed first.