Q. Which of the following is NOT a valid PHP variable name?

  • (A) $var_name
  • (B) $var-name
  • (C) $_var
  • (D) $varName
πŸ’¬ Discuss
βœ… Correct Answer: (B) $var-name
Explanation: Hyphens are not allowed in PHP variable names.
Explanation by: Rati Dubey
Hyphens are not allowed in PHP variable names.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
88
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
83%
Success Rate