Home » PHP » PHP Functions » Question
  1. What will be the output of the following PHP code?
     <?php
    function fun1()
    {
    function fun2()
    {
    echo 'I am Ajit.';
    }
    echo 'I am Rahul. ';
    }
    fun1();
    fun2();
    ?>
    1. I am Rahul.
    2. I am Ajit.
    3. I am Rahul. I am Ajit.
    4. Error
    5. None of these
Correct Option: C

I am Rahul. I am Ajit.



Your comments will be displayed only after manual approval.