different between magic method and construcor in php code example

Example: php magic methods

/*
The following function names are magical in PHP classes. 
You cannot have functions with these names in any of 
your classes unless you want the magic functionality 
associated with them.
*/
__construct(), 
__destruct(), 
__call(), 
__callStatic(), 
__get(), 
__set(),
__isset(), 
__unset(), 
__sleep(), 
__wakeup(), 
__serialize(),
__unserialize(), 
__toString(), 
__invoke(), 
__set_state(), 
__clone(), 
 __debugInfo()

Tags:

Php Example