Keywords / PHP, Constructor

Tags: PHP, Constructor

Classes and objects in PHP: constructors

Classes and objects in PHP: constructors
Quite often, when creating an object it is required to set values to some properties. Fortunately, the developers of OOP took this into account and implemented it in the concept of constructor.