Question is : How to make a constructor in PHP?
Answer is : Using __construct() (Faysal You don’t know that?)
Question is: Do you know why __ used in here?
Answer is : They are magical .
Magical????? Are you joking?
Well, in object oriented programming, magic methods do some tricks. These tricks are not shown, but it works. Like constructors, they are called each time when a object initialized. But Have you coded it to call each time when object inits ?
Another two common magic methods are __get() and __set() method.
Some more are listed here: http://php.net/manual/en/language.oop5.magic.php