Home » PHP » PHP Functions » Question
  1. What will be the output of the following PHP code?
    <?php
    function m()
    {
    echo "m is executed...";
    }
    function n()
    {
    m();
    echo "\nn is executed... \n";
    m();
    }
    n();
    ?>
    1. Error
    2. m is executed...
    3. n is executed...
    4. m is executed...
      n is executed...
    5. m is executed...
      n is executed...
      m is executed...
Correct Option: E

Simple order of execution.



Your comments will be displayed only after manual approval.