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();
?>
I am a Error
Correct:
I am a Error
Explanation: The output will be ''I am '' as we are calling a(); so the statement outside the block of function b() will be called.