Q. Which magic method is called when an object is destroyed?

  • (A) __destruct()
  • (B) __destroy()
  • (C) __unset()
  • (D) __end()
πŸ’¬ Discuss
βœ… Correct Answer: (A) __destruct()
Explanation: __destruct() is automatically called when an object is destroyed.
Explanation by: Rati Dubey
__destruct() is automatically called when an object is destroyed.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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