Examveda
Examveda

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

A. redredred

B. redred

C. red

D. Error

Answer: Option C

Solution(By Examveda Team)

In PHP, all variables are case-sensitive.

This Question Belongs to PHP >> Operators And Expressions In Php

Join The Discussion

Related Questions on Operators and Expressions in php