πŸ“Š PHP
Q. How do you define a constant in PHP?
  • (A) define('NAME', 'value')
  • (B) const NAME = 'value';
  • (C) constant NAME = 'value';
  • (D) Both define() and const
πŸ’¬ Discuss
βœ… Correct Answer: (D) Both define() and const

Explanation: Both define() and const can be used to declare constants.

Explanation by: Rati Dubey
Both define() and const can be used to declare constants.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
57
Total Visits
πŸ“½οΈ
9 mo ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
89%
Success Rate