= 10) "> What will be the output of the following PHP code ?<?phpfunction

Home » PHP » PHP Functions » Question
  1. What will be the output of the following PHP code ?
    <?php
    function fun($m)
    {
    if ($m < 10)
    echo "True";
    if ($m >= 10)
    echo "False";
    }
    fun(20);
    ?>
    1. Error
    2. True
    3. Nothing
    4. False
    5. None of these
Correct Option: D

Argument is 20.



Your comments will be displayed only after manual approval.