"> 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 = "1";
    echo "$Country1" + "$Country2";
    ?>
    1. INDIA
    2. 1
    3. INDIA 1
    4. 0
    5. None of these
Correct Option: B

+ just returns the numeric value even though it is inside double quotes.



Your comments will be displayed only after manual approval.