?
What will be the output of the following PHP code ?
What will be the output of the following PHP code ?
<?php
$color1 = "red";
$color2 = "red";
echo "$color1" + "$color2";
?>
<?php
$color1 = "red";
$color2 = "red";
echo "$color1" + "$color2";
?>
Answer & Solution
Correct Answer:
Option
C
+ does not return 1 if the variables are equal.
Join the Discussion
Login to post a comment or share your explanation.
Login