Q. How do you declare a constant in PHP?

  • (A) Using the define function
  • (B) Using the const keyword
  • (C) Both options one and two
  • (D) None of these
πŸ’¬ Discuss
βœ… Correct Answer: (C) Both options one and two
Explanation: Constants can be declared using define or const keyword in PHP
Explanation by: Rati Dubey
Constants can be declared using define or const keyword in PHP

πŸ’¬ Discussion


πŸ“Š Question Analytics

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