Examveda
Examveda

What will be the output of the following PHP code ?
<?php
function mine($m)
{
    if ($m < 0)
        echo "less than 0";
    if ($ >= 0)
        echo "Not True";
}
mine(0);
?>

A. Less Than 0

B. Not True

C. No Output

D. None of the Mentioned

Answer: Option B

Solution(By Examveda Team)

Argument is 0.

This Question Belongs to PHP >> Functions

Join The Discussion

Comments ( 2 )

  1. Shalani Kaushalya
    Shalani Kaushalya :
    2 years ago

    answer is D not B

  2. Shalani Kaushalya
    Shalani Kaushalya :
    2 years ago

    answer D not B

Related Questions on Functions