"> 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 = "YELLOW";
    $Color2 = "GREEN";
    print($Color1==$Color2);
    ?>
    1. error
    2. nothing
    3. YELLOW
    4. GREEN
    5. None of these
Correct Option: B

Since we are equating two unequal strings we do not get any output.



Your comments will be displayed only after manual approval.