Q. What will be the output of the following PHP code?
Code:
<?php
function foo($msg)
{
echo "$msg";
}
$var1 = "foo";
$var1("will this work");
?>
β
Correct Answer: (D)
will this work