Q:

hat will be the output of the following PHP code?

0

hat will be the output of the following PHP code?

<?php
    $op2 = "blabla";
    function foo($op1)
    {
        echo $op1;
        echo $op2;
    }
    foo("hello");
    ?><?php
        function foo($msg)
        {
            echo "$msg";
        }
        $var1 = "foo";
        $var1("will this work");
    ?>

  1. error
  2. $msg
  3. 0
  4. will this work

All Answers

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

(d).will this work

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