-
What will be the output of the following PHP code?
<?php
function First()
{
echo "Function First executed...\n";
function Second()
{
echo "Function Second executed...";
}
}
First();
Second();
?>
-
- Function First executed...
- Function Second executed...
Function First executed... - Function Second executed...
- Function First executed...
Function Second executed... - None of these
Correct Option: D
Second is declared in First and is called after First.Hence it works.