πŸ“Š PHP
Q. Which of the following is the correct way to define a constant in PHP?
  • (A) define('CONSTANT_NAME', 'value');
  • (B) constant('CONSTANT_NAME', 'value');
  • (C) const CONSTANT_NAME = 'value';
  • (D) Both option1 and option3
πŸ’¬ Discuss
βœ… Correct Answer: (D) Both option1 and option3

Explanation: Constants can be defined using define() function or const keyword.

Explanation by: Rati Dubey
Constants can be defined using define() function or const keyword.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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