ExamVeda
Login
Home
This question belongs to PHP Functions
Functions
?

What will be the output of the following PHP code?
span>
function one()
{
    echo " this works";
    function two()
    {
        echo "this too works";
    }
}
one();
two();
?>

Answer & Solution
Correct Answer: Option C
Two is declared in one and is called after one.Hence it works.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.