Phạm Thanh Nam
New member
What will be the output of the following PHP code?
A. Error
B. 0
C. 42
D. 84
Code:
<?php
function calc($num1, $num2)
{
$total = $num1 * $num2;
return $total;
}
$result = calc(42, 0);
echo $result;
?>
B. 0
C. 42
D. 84