"> What will be the output of the following PHP code ? < ?php var $one = 1; va "> " /> " />
Sail E0 Webinar
Question
What will be the output of the following PHP code ?
< ?php
var $one = 1;
var $two = 2;
echo "$one / $two * $one / $two * $two";
?>
Options:
A .  1
B .  0
C .  0.5
D .  Error
Answer: Option D


You can not use var before a 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