Programming Language PHP Basic MCQ Question #2355
Single Choice Not Set

QWhich of following variables can be assigned a value to it?
(i) $3hello
(ii) $_hello
(iii) $this
(iv) $This

ID: #2355 PHP Basic MCQ 1,229 views
Question Info
#2355Q ID
Not SetDifficulty
PHP Basic MCQTopic

Choose the Best Option

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

  • A All of the mentioned
  • B nly (ii)
  • C (ii), (iii) and (iv)
  • D (ii) and (iv)
Correct Answer

Explanation

A variable can’t start with a number. Also $this is a special variable that can’t be assigned, but $This can be assigned.

Share This Question

Challenge a friend or share with your study group.