-
What will be the output of the following PHP code ?
<?php
function fun($str)
{
echo "my favourite fun time is ".$str;
function m()
{
echo " to spend with friends";
}
}
m();
?>
-
- my favourite fun time is
- Nothing
- to spend with friends
- Error
- my favourite fun time is to spend with friends
Correct Option: D
m is undeclared if fun() is not called first.