πŸ“Š PHP
Q. Which function is used to get the name of the current class inside it?
  • (A) __CLASS__
  • (B) get_class()
  • (C) classname()
  • (D) thisclass()
πŸ’¬ Discuss
βœ… Correct Answer: (A) __CLASS__

Explanation: The magic constant __CLASS__ returns the name of the current class.

Explanation by: Rati Dubey
The magic constant __CLASS__ returns the name of the current class.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
33
Total Visits
πŸ“½οΈ
3 mo ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
84%
Success Rate