Home » PHP » PHP Introduction » Question
  1. What will be the output of the following PHP code?
    <?php
    $num = 6;
    $num1 = 6;
    echo ($num === $num1);
    ?>
    1. Error
    2. 1
    3. False
    4. 6 === 6
    5. None of these
Correct Option: B

=== operator returns 1 if $num and $num1 are equivalent and $num and $num1 have the same type.



Your comments will be displayed only after manual approval.