Vidyalelo
PHP · Q23

Functions

Programming · PHP · question 23

Q23

What will be the output of the following PHP code?

A.
I am b
B.
I am bI am a
C.
Error
Answer
D.
I am a Error

Answer: Option C

Solution

Answer: Option C
Solution:
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.