A

Admin • 833.24K Points
Coach

Q. Which magic method is called automatically when an object is created?

  • (A) __start()
  • (B) __init()
  • (C) __construct()
  • (D) __new()
  • Correct Answer - Option(C)
  • Views: 29
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin

__construct() is the constructor method in PHP.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.