PHP Magic methods – Magic methods in PHP – Detailed tutorial
What are magic methods in PHP? PHP Magic methods are a special kind of method defined in OOP PHP, which gets called automatically when a certain event occurs on an object of a class. PHP Magic methods names start with double underscores ( __ ). We have already seen such two methods __construct() and __destruct() … Read more