Slowly looking for the night, with the bright moon hanging high in the sky.
All the magic methods in PHP currently include these
<span>__construct() __destruct() __call() __callStatic() __get() __set() __isset() __unset() __sleep() __wakeup() __toString() __invoke() __set_state() __clone() __debuglnfo()</span>
Why study these magic methods can enrich our knowledge. This is what programmers are like, when you feel you need a certain knowledge point, you will definitely study it
Here you can see that the names of magic methods all start with '__', which is two '_'
So we don’t use '__' when defining class methods