ClassName() and __construct() are the same as the constructor.
__construct() function is the most useful comparison with ClassName() , because when you change your ClassName() , you must change the name of your constructor, but you do not need to change __construct() , and also use it in the child class.
sanjeev
source share