What will be the output of the following PHP code ?
<?php
function start($string)
{
if ($string < 45)
return 20;
else
return 40;
}
$t = start(90);
if ($t < 20)
{
echo "Have a good day!";
}
else
{
echo "Have a good night!";
}
?>
- Have a good day!
- Have a good night!
- ERROR
- None of the mentioned
(b).Have a good night!
need an explanation for this answer? contact us directly to get an explanation for this answer