PHP MCQ Variables in Php MCQ Question #2374
MCQ Single Best Answer Not Set

QWhat will be the output of the following PHP code?
< ?php 
var $one = 1;
var $two = 2;
echo "$one / $two * $one / $two * $two";
?>

ID: #2374 Variables in Php MCQ 615 views
Question Info
#2374Q ID
Not SetDifficulty
Variables in Php MCQTopic

Choose the Best Option

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

  • A 1
  • C 0.5
  • D Error
Correct Answer: Option D

Explanation

You can not use var before a variable name.

Share This Question

Challenge a friend or share with your study group.