?
What will be the output of the following PHP code?
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();
?>
<?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()
Join the Discussion
Login to post a comment or share your explanation.
Login