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

Home » PHP » PHP Syntax » Question
  1. What will be the output of the following PHP code ?
    <?php
    $Country1 = "INDIA";
    $Country2 = "INDIA";
    echo "$Country1" + "$Country2";
    ?>
    1. INDIA
    2. INDIA INDIA
    3. Error
    4. 0
    5. None of these
Correct Option: D

+ does not return 1 if the variables are equal.



Your comments will be displayed only after manual approval.