Examveda
Examveda

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

A. red red

B. red

C. error

D. nothing

Answer: Option C

Solution(By Examveda Team)

Use of undefined constant red.

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

Join The Discussion

Related Questions on Operators and Expressions in php