-
What will be the output of the following PHP code?
<?php
function n()
{
function m()
{
echo 'M';
}
echo 'N';
}
m();
n();
?>
-
- Nothing
- Error
- M
- N
- None of these
Correct Option: B
This will be the output- Fatal error: Call to undefined function m(). You cannot call a function which is inside a function without calling the outside function.