A
Q. What will be the output of the following PHP code?
Code:
<?php
function foo($msg)
{
echo "$msg";
}
$var1 = "foo";
$var1("will this work");
?>
function foo($msg)
{
echo "$msg";
}
$var1 = "foo";
$var1("will this work");
?>
- Correct Answer - Option(D)
- Views: 17
- Filed under category PHP
- Hashtags:
Discusssion
Login to discuss.