A PHP class is a template or a blueprint for creating objects. It is actually a user-defined data type having member variables (data) and member functions to operate on that data. In oop, data is called properties and functions are