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);
?>
<?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.Join The Discussion
Comments ( 2 )
Related Questions on Functions
Which one of the following is the right way of defining a function in PHP?
A. function { function body }
B. data type functionName(parameters) { function body }
C. functionName(parameters) { function body }
D. function fumctionName(parameters) { function body }
A. Call By Value
B. Call By Reference
C. Default Argument Value
D. Type Hinting
answer is D not B
answer D not B