Q:

What will be the output of the following PHP code?

belongs to collection: FUNCTIONS IN PHP MCQ

0

What will be the output of the following PHP code?

<?php
    function b()
    {
        echo "b is executed";
    }
    function a()
    {
        b();
        echo "a is executed";
        b();
    }
    a();
  ?>

  1. b is executedb is executedb is executed
  2. b is executeda is executed
  3. a is executed
  4. b is executeda is executedb is executed

All Answers

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

 (d).b is executeda is executedb is executed

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

total answers (1)

FUNCTIONS IN PHP MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
What will be the output of the following PHP code?... >>
<< What will be the output of the following PHP code?...