Q. Which of the following is a PHP magic method?

  • (A) __construct()
  • (B) init()
  • (C) start()
  • (D) create()
πŸ’¬ Discuss
βœ… Correct Answer: (A) __construct()
Explanation: __construct() is the constructor method automatically called on object creation.
Explanation by: Rati Dubey
__construct() is the constructor method automatically called on object creation.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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