?
What will be the output of the following PHP code ?
What will be the output of the following PHP code ?
<?php
$color1 = "red";
$color2 = "1";
$color3 = "grey"
echo "$color1" + "$color2" . "$color3";
?>
<?php
$color1 = "red";
$color2 = "1";
$color3 = "grey"
echo "$color1" + "$color2" . "$color3";
?>
Answer & Solution
Correct Answer:
Option
A
+ gives the value 1 and . is used to give join 1 and grey.
Join the Discussion
Login to post a comment or share your explanation.
Login