19. PHP

Be careful when reading health books; you may die of a misprint.

—Mark Twain

Reckoners without their host must reckon twice.

—John Heywood

There was a door to which I found no key; There was the veil through which I might not see.

—Omar Khayyam

Objectives

In this chapter you will:

• Manipulate data of various types.

• Use operators, arrays and control statements.

• Use regular expressions to search for text that matches a patterns.

• Construct programs that process form data.

• Store data on the client using cookies.

• Create programs that interact with MySQL databases.

Outline

19.1 Introduction

19.2 Simple PHP Program

19.3 Converting Between Data Types

19.4 Arithmetic Operators

19.5 Initializing and Manipulating Arrays

19.6 String Comparisons ...

Get Internet & World Wide Web: How to Program, Fifth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.