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.Related Questions on Basic PHP
A. Both 1 and 3
B. Both 2 and 4
C. Only 2
D. Both 1 and 2
Which of the following is/are a PHP code editor?
1. Notepad
2. Notepad++
3. Adobe Dreamweaver
4. PDT
A. Only 4
B. All of the mentioned
C. 1, 2 and 3
D. Only 3
A. All of the mentioned.
B. Only 2
C. 2 and 3
D. 2, 3 and 4
Join The Discussion