"> What will be the output of the following PHP code ?<?php$Country1

Home » PHP » PHP Echo/Print » Question
  1. What will be the output of the following PHP code ?
    <?php
    $Country1 = "INDIA";
    $Country2 = "INDIA";
    print($Country1 == $Country2);
    ?>
    1. Error
    2. Nothing
    3. INDIA
    4. 0
    5. 1
Correct Option: E

Since both the strings are equal the result 1 is printed on the screen.



Your comments will be displayed only after manual approval.