Sail E0 Webinar
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" ;
?>
Options:
A .  0.75
B .  0.05
C .  1.25
D .  Error
Answer: Option D


You can not use the $ in between the variable name.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers