Question
What will be the output of the following PHP code ?
< ?php
$on$e = 1;
$tw$o = 2;
$thre$e = 3;
$fou$r = 4;
echo "$on$e / $tw$o + $thre$e / $fou$r" ;
?>
< ?php
$on$e = 1;
$tw$o = 2;
$thre$e = 3;
$fou$r = 4;
echo "$on$e / $tw$o + $thre$e / $fou$r" ;
?>
Answer: Option D
Was this answer helpful ?
You can not use the $ in between the variable name.
Was this answer helpful ?
Submit Solution