What will be the output of the following PHP code ?
<?php
function mine($num)
{
$num = 2 + $num;
echo $num;
}
mine(3);
?>
<?php
function mine($num)
{
$num = 2 + $num;
echo $num;
}
mine(3);
?>A. 3
B. $num
C. 5
D. None of the mentioned
Answer: Option C

Join The Discussion