1.

What will be the output of the following PHP code?
<?php
function fun1()
{
function fun2()
{
echo 'I am Ajit.';
}
echo 'I am Rahul';
}
fun2();
fun1();
?>

A. Error
B. I am Ajit.
C. I am Rahul.
D. I am Rahul. I am Ajit.
E. None of these
Answer» B. I am Ajit.


Discussion

No Comment Found

Related MCQs