PHP Classes and Objects

Ariel Jakubowski
4 min readJan 14, 2020

A class can be thought of as a set of blueprints that describe something. From this set of blueprints, individual examples can be made. These examples, often called instances, are single objects. If we take pets as an example, we can use a class to describe pets in general. The class will tell us that the pet should have a name, an age, and a species, among other pieces of information. It is only when making an instance of a class that we get…

--

--