Table of Contents
Copyright
About the Author
We Want to Hear from You!
Reader Services
Introduction: Welcome to PHP
Who This Book Is For
How This Book Is Organized
Versions of Software Covered
Conventions Used in This Book
Lesson 1. Getting to Know PHP
PHP Basics
Your First Script
Summary
Lesson 2. Variables
Understanding Variables
Data Types
Lesson 3. Flow Control
Conditional Statements
Loops
Lesson 4. Functions
Using Functions
Arguments and Return Values
Using Library Files
Lesson 5. Working with Numbers
Arithmetic
Numeric Data Types
Numeric Functions
Lesson 6. Working with Strings
Anatomy of a String
Formatting Strings
String Functions
Lesson 7. Working with Arrays
What Is an Array?
Array Functions
Multidimensional Arrays
Lesson 8. Regular Expressions
Introducing Regular Expressions
Using ereg
Lesson 9. Working with Dates and Times
Date Formats
Working with Timestamps
Lesson 10. Using Classes
Object-Oriented PHP
What Is a Class?
Creating and Using Objects
Lesson 11. Processing HTML Forms
Submitting a Form to PHP
Processing a Form with PHP
Creating a Form Mail Script
Lesson 12. Generating Dynamic HTML
Setting Default Values
Creating Form Elements
Lesson 13. Form Validation
Enforcing Required Fields