Articles tagged OOP

Singleton Classes in PHP Snippet

In this PhpRiot Snippet I will show you how to create and use singleton classes.

Advanced OOP With SPL In PHP 5

This article covers the extensions to PHP5's OOP including SPL (Standard PHP Library) and how to use them in a real world setting. For the purposes of this article it will be assumed that you already know about classes, interfaces, static members, and references. You should also understand some basic design patterns like Factory. These concepts will be illustrated through the use of a conceptual database layer.