Q. Which PHP function checks if a constant is defined?

  • (A) isset()
  • (B) defined()
  • (C) constant_exists()
  • (D) is_constant()
πŸ’¬ Discuss
βœ… Correct Answer: (B) defined()
Explanation: defined() checks whether a constant exists.
Explanation by: Mr. Dubey
defined() checks whether a constant exists.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
48
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
97%
Success Rate