Q:

What will be the output of the following PHP code?

belongs to collection: ARRAYS AND FUNCTIONS IN PHP MCQ

0

What will be the output of the following PHP code?

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

  1. 0
  2. 1
  3. 2
  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)

ARRAYS AND FUNCTIONS IN PHP MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
PHP’s numerically indexed array begin with posit... >>
<< A function in PHP which starts with __ (double und...