Examveda
Examveda

What will be the output of the following PHP code ?
<?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

Solution(By Examveda Team)

Simple arithmetic operation.

This Question Belongs to PHP >> Functions

Join The Discussion

Related Questions on Functions