MCQ Practice Single Best Answer Topic: Variables in Php MCQ

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

Question ID
#2374
Subchapter
Variables in Php MCQ
Action
Choose one option below

Choose Your Answer

Click an option to check whether your answer is correct.

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

Explanation

You can not use var before a variable name.

Share This Question

Share this MCQ with your friends or study group.