2.4k questions

2.4k answers

99.5k users

Categories

0 votes
71 views
in oop php what are __get and __set magic methods ?
in General by (95.8k points)

1 Answer

0 votes
PHP calls the __get() method automatically when you access a non-existing or inaccessible property. PHP calls the __set() method automatically when you assign a value to a non-existing or inaccessible property.
by (95.8k points)
...