ExamVeda
Login
Home
This question belongs to PHP Functions
Functions
?

What will be the output of the following PHP code ?
<?php
function calc($num1, $num2)
{
    $total = $num1 * $num2; 
}
$result = calc(42, 0);
echo $result;    
?>

Answer & Solution
Correct Answer: Option A
Function does not return anything.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.