– PHP magic methods – OOP in PHP | Part 5

PHP magic methods – OOP in PHP | Part 5In the following video, it is explained how magic methods work.
I will cover 11 magic methods. From these 11 methods, two of them are already covered in the following video

See my previous video about Constructors and Destructors
https://youtu.be/CFBx0kHpnjw
About static methods and static properties:

The rest of the methods:
00:46 – __toString
02:30 – __get and __set
06:21 – __call
12:03 – __callStatic
12:57 – __invoke
15:00 – __sleep and __wakeup
19:16 – __clone

Follow me on social media:
https://www.facebook.com/thecodeholic
https://twitter.com/thecodeholic
https://github.com/thecodeholic