Guide to PHP and MySQL (Buffalo State College Version)
Chapter 14: Object-Oriented PHP
Classes and Objects
You can use the PHP
class keyword to create an object.
class Methods (Functions)
You can then use
functions) to perform a task such as "setter" (accessor) and "getter" (mutator) methidss. Class variables are referred to as "properties".