?
What will be the output of the following PHP code ?
What will be the output of the following PHP code ?
<?php
$color1 = "1";
$color2 = "1";
echo "$color1" + "$color2";
?>
<?php
$color1 = "1";
$color2 = "1";
echo "$color1" + "$color2";
?>
Answer & Solution
Correct Answer:
Option
B
+ can be used to add to integer values which are enclosed by double-quotes.
Join the Discussion
Login to post a comment or share your explanation.
Login