]> Object Oriented PHP | Web Developer Reference Blog

PHP Objects, The Basics

Friday, February 26th, 2010

I have come across classes very often and use classes distributed on phpclasses.org such as phpMailer, an excellent class for sending emails using PHP. A class allows programmers to separate code from the main systems while being able to access and define variables for access outside the class, inside the class or just within one function in the class.

In this article I will discuss the general structure of a simple class and usage of a simple “HELLO” class as an example.

(more…)