What will be the output of the following PHP code? [code] <?php function foo($msg) { echo "$msg"; }

Tâm Tây

New member
What will be the output of the following PHP code?
Code:
    <?php
        function foo($msg)
        {
            echo "$msg";
        }
        $var1 = "foo";
        $var1("will this work");
    ?>
A. error
B. $msg
C. 0
D. will this work
 

Tìm kiếm

Back
Top