A

Admin • 833K Points
Coach

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

  • (A) __destruct()
  • (B) __destroy()
  • (C) __unset()
  • (D) __end()
  • Correct Answer - Option(A)
  • Views: 25
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin

__destruct() is automatically called when an object is destroyed.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.