Discussion :: PHP - CS
-
What will be the output of the following PHP code ?
<?php
function mine($num)
{
$num = 2 + $num;
echo "$num";
}
mine(3);
?>
Answer : Option B
Explanation :
The function is defined as echo “$num”.This means $num is treated as a string and not as a variable.
Be The First To Comment