MCQ
Single Best Answer
Not Set
QWhat will be the output of the following PHP code?
< ?php
function a()
{
function b()
{
echo 'I am b';
}
echo 'I am a';
}
b();
a();
?>
ID: #2433
Functions in PHP MCQ
410 views
Question Info
#2433Q ID
Not SetDifficulty
Functions in PHP MCQTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer: Option C
Explanation
This will be the output- Fatal error: Call to undefined function b(). You cannot call a function which is inside a function without calling the outside function.
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic