Which is not a valid variable name in PHP?

12. Which is not a valid variable name in PHP?

  1. age
  2. _age
  3. PersonAge
  4. 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.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.