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

Home » PHP » PHP Echo/Print » Question
  1. What will be the output of the following PHP code ?
    <?php
    $Color1 = "RED";
    $Color2 = "YELLOW";
    print("$Color1$Color2");
    ?>
    1. RED
    2. YELLOW
    3. Error
    4. REDYELLOW
    5. None of these
Correct Option: D

This is same as the echo statement.



Your comments will be displayed only after manual approval.