ExamVeda
Login
Home
Operators and Expressions in php
?

What will be the output of the following PHP code ?
<?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.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.