ExamVeda
Login
Home
Operators and Expressions in php
?

What will be the output of the following PHP code ?
<?php
$color = red;
echo "$color";
?>

Answer & Solution
Correct Answer: Option B
To print red remove the .
Examveda
Question posted by Examveda
Community

Join the Discussion

2 Comments
عبووود الأسطا
عبووود الأسطا 5 years ago
this code will occur an error
because the word 'red' is not in single or double quotation;
Ayussh Srivastav
Ayussh Srivastav 5 years ago

output will be:
red
#(where's the '.' according to solution in examveda)