Discussion :: PHP - CS
-
What will be the output of the following PHP code ?
<?php
$color1 = red;
$color2 = green;
echo "$color1"."$color2";
?>
Answer : Option D
Explanation :
It has to be $color1 = “red”; and $color2 = “green”; therefore the error.
Be The First To Comment