what are php magic fuction?

34 Views

what are php magic fuction?

magic fuction

In PHP all functions start with __ names are magical functions. Magical functions always lives in a PHP class.The definition of magical function are defined by programmer itself.

Here are list of magic functions available in PHP

__construct(), __destruct(), __call(), __callStatic(), __get(), __set(), __isset(), __unset(), __sleep(), __wakeup(), __toString(), __invoke(), __set_state(), __clone() and __debugInfo().

Tags:-
PHP