ExamVeda
Login
Home
Operators and Expressions in php
?

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"; 
?>

Answer & Solution
Correct Answer: Option D
You can not use the $ in between the variable name.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.