?
What will be the output of the following PHP code ?
What will be the output of the following PHP code ?
<?php
$color = red;
echo "$color";
?>
<?php
$color = red;
echo "$color";
?>
Answer & Solution
Correct Answer:
Option
B
To print red remove the .
Join the Discussion
Login to post a comment or share your explanation.
Loginbecause the word 'red' is not in single or double quotation;
output will be:
red
#(where's the '.' according to solution in examveda)