A
Q. What will be the output of the following PHP code?
Code:
<?php
function calc($num1, $num2)
{
$total = $num1 * $num2;
}
$result = calc(42, 0);
echo $result;
?>
function calc($num1, $num2)
{
$total = $num1 * $num2;
}
$result = calc(42, 0);
echo $result;
?>
- Correct Answer - Option(C)
- Views: 14
- Filed under category PHP
- Hashtags:
Discusssion
Login to discuss.