ExamVeda
Login
Home
This question belongs to PHP Functions
Functions
?

What will be the output of the following PHP code?
<?php
function a()
{
    function b()
    {
        echo 'I am b';
    }
    echo 'I am a';
}
a();
a();
?>

Answer & Solution
Correct Answer: Option D
This will be the output- I am a Fatal error: Cannot redeclare b()
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.