Single Choice Not Set

QWhat will be the output of the following PHP code?
< ?php 
$4four = 4;
$3three = 3;
$2two = 2;
echo "$4four + $3three / $2two - 1";
?>  

ID: #2376 Variables in Php MCQ 918 views
Question Info
#2376Q ID
Not SetDifficulty
Variables in Php MCQTopic

Choose the Best Option

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

  • A 4.5
  • B 7
  • C 3.5
  • D Error
Correct Answer

Explanation

A variable name can not start with a numeric value.

Share This Question

Challenge a friend or share with your study group.