__set() and __get() (OOP in PHP Tutorial #8)
In this tutorial we learn how to use magic methods such as __set() and __get() and how we can use them to access private and protected variables.
source
In this tutorial we learn how to use magic methods such as __set() and __get() and how we can use them to access private and protected variables.
source