Examveda
Examveda

Which of following variables can be assigned a value to it?
1. $3hello
2. $_hello
3. $this
4. $This

A. All of the mentioned

B. Only 2

C. 2, 3 and 4

D. 2 and 4

Answer: Option D

Solution(By Examveda Team)

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

This Question Belongs to PHP >> Basic PHP

Join The Discussion

Related Questions on Basic PHP