πŸ“Š PHP
Q. Which magic method is called when cloning an object?
  • (A) __clone()
  • (B) __copy()
  • (C) __duplicate()
  • (D) __new()
πŸ’¬ Discuss
βœ… Correct Answer: (A) __clone()

Explanation: __clone() is triggered during object cloning.

Explanation by: Yami Thakur
__clone() is triggered during object cloning.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
2
Total Visits
πŸ“½οΈ
2 d ago
Published
πŸŽ–οΈ
Yami Thakur
Publisher
πŸ“ˆ
81%
Success Rate