Sleeping and waking up in PHP

Dec 01, 2010 Author: Dusan
PHP provides a hook mechanism so that objects can specify what should happen just before serialization and just after unserialization. The special member function __sleep() (that’s two underscores before…


Sep 05, 2010 Author: Jenna
Encodes the given data with base64.

Creating a bank_account Class

Nov 06, 2009 Author: Developer
To demonstrate the use of a class, let's create one to model a bank account.

How many visitors browsing the site at the moment?

Sep 30, 2009 Author: Dr_ViRuS
In this tutorial will show you how to make a class that will show how many users browsing the site at the moment. First, how work this class and its function. For his realization normally need a Apache…

Filtering Iterators

Aug 18, 2009 Author: Developer
The FilterIterator class can be used to filter the items returned by an iteration: