What will be the output of the following PHP code?
<?php
function foo($msg)
{
echo "$msg";
}
$var1 = "foo";
$var1("will this work");
?>
Will this work
Correct:
Will this work
Explanation: It is possible to call a function using a variable which stores the function name.