title: PHP 5 Recipes: A Problem-Solution Approach
author: Frank M. Kromann
description: Frank Kromann is a PHP expert, web developer and PHP book author.
zlib_text: 
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  ![](index-1_1.png)
  
  
  **PHP Cookbook**
  
  
  By David Sklar, Adam Trachtenberg
  
  
  
  
  
  
  
  
  Publisher
  
  
  : O'Reilly
  
  
  Pub Date
  
  
  : November 2002
  
  
  ISBN
  
  
  : 1-56592-681-1
  
  
  
  
  
  Pages
  
  
  : 632
  
  
  
  
  
  The _PHP Cookbook_ is a collection of problems, solutions, and practical
  examples for PHP programmers. The book contains a unique and extensive
  collection of
  
  
  best practices for everyday PHP programming dilemmas. It contains over 250
  
  
  recipes, ranging from simple tasks to entire programs that demonstrate complex
  
  
  tasks, such as printing HTML tables and generating bar charts -- a treasure
  
  
  trove of useful code for PHP programmers, from novices to advanced
  
  
  practitioners.
  
  
  
  
  
  Copyright
  
  
  
  
  
  
  
  
  
  
  
  ## Preface
  
  
  ### Who This Book Is For
  
  
  
  
  
  
  
  
  What Is in This Book
  
  
  
  
  
  Other Resources
  
  
  
  
  
  Conventions Used in This Book
  
  
  
  
  
  Comments and Questions
  
  
  
  
  
  Acknowledgments
  
  
  
  
  
  
  
  
  Chapter 1. Strings
  
  
  
  
  
  Section 1.1. Introduction
  
  
  
  
  
  Recipe 1.2. Accessing Substrings
  
  
  
  
  
  Recipe 1.3. Replacin