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

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