PHP Tutorial: Classes are the fundamentals of OOP (Object Oriented Programming), which may sound scary but they are basically containers for functions, they allow data to be stored within them and when a function is called they output data, it is as simple as that.