PHP MCQ Variables in Php MCQ Question #2369
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: #2369 Variables in Php MCQ 781 views
Question Info
#2369Q ID
Not SetDifficulty
Variables in Php MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A 0.75
  • B 0.05
  • C 1.25
  • D Error
Correct Answer

Explanation

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

Share This Question

Challenge a friend or share with your study group.