asked on
PHP is a widely-used server-side scripting language especially suited for web development, powering tens of millions of sites from Facebook to personal WordPress blogs. PHP is often paired with the MySQL relational database, but includes support for most other mainstream databases. By utilizing different Server APIs, PHP can work on many different web servers as a server-side scripting language.
TRUSTED BY
In the general sense, calling parent::__construct() is just calling a function (method) to get some piece of work done. Different programming objectives may need different approaches. If the child class needs the parent's constructor to run before it can do its work, calling the parent constructor makes sense. If this is not needed (for example, the child simply adds some static functionality) then there is no reason to call the "upstream" constructors or other methods.