What will be the output of the following code? | PHP MCQs

function fn (&$var)
{
$var = $var - ($var/10*5);
return $var;
}
echo fn(100);
a. 100
b. 50
c. 98
d. Error message
e. None of the above

Ans: d

0 comments:

Post a Comment

Blogger news