Home »
MCQs »
PHP MCQs
Which is not a valid variable name in PHP?
12. Which is not a valid variable name in PHP?
- age
- _age
- PersonAge
- 1age
Answer: D) 1age
Explanation:
The variable name 1age is not valid in PHP. A variable name must start with a letter or the underscore character.