Code and Examples from PHP Cookbook 3rd Edition