Home » PHP » PHP Functions » Question
  1. What will be the output of the following PHP code?
    <?php
    function n()
    {
    function m()
    {
    echo 'M';
    }
    echo 'N';
    }
    n();
    n();
    ?>
    1. M
      N
    2. N
      M
    3. Fatal error: Cannot redeclare n()
      M
    4. Fatal error: Cannot redeclare m()
      N
    5. None of these
Correct Option: D

This will be the output- I am a Fatal error: Cannot redeclare b()



Your comments will be displayed only after manual approval.