ExamVeda
Login
Home
Operators and Expressions in php
?

What will be the output of the following PHP code ?
<?php
$color1 = red;
$color2 = green;
echo "$color1"."$color2";
?>

Answer & Solution
Correct Answer: Option D
It has to be $color1 = “red”; and $color2 = “green”; therefore the error.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.