Single Choice
Not Set
QWhat 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";
?>
ID: #2371
Variables in Php MCQ
645 views
Question Info
#2371Q ID
Not SetDifficulty
Variables in Php MCQTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer
Explanation
Since the variable initialised is $On_e and the variable in the echo statement is $on_e the echo statement treats $on_e as 0;
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic