What are Magic Methods in PHP?
Category: Php
Special methods that start with __(double where
-
__construct() → Constructor
-
__destruct()→ Start
-
__get() → Get inaccessible property
-
__set() → Set inaccessible property
-
__toString() → Convert object to string