PHP MCQ PHP Basic MCQ Question #2365
MCQ Single Best Answer Not Set

QWhich statement will output $x on the screen?

ID: #2365 PHP Basic MCQ 6,642 views
Question Info
#2365Q ID
Not SetDifficulty
PHP Basic MCQTopic

Choose the Best Option

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

  • A echo
  • B echo
  • C echo
  • D echo
Correct Answer: Option A

Explanation

A backslash is used so that the dollar sign is treated as a normal string character rather than prompt PHP to treat $x as a variable. The backslash used in this manner is known as escape character.

Share This Question

Challenge a friend or share with your study group.