Q:

What will be the output of the following PHP code?

0

What will be the output of the following PHP code?

<?php
    function a()
    {
        function b()
        {
            echo 'I am b';
  }
        echo 'I am a';
    }
    a();
    a();
    ?>

  1. I am b
  2. I am bI am a
  3. Error
  4. I am a Error

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

 (d).I am a Error

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now