2. Variables

In the previous chapter, you learned how to use PHP to send simple text and HTML to a Web browser—in other words, something for which you don’t need PHP at all! Don’t worry, though; this book will teach you how to use print in conjunction with other PHP features to do great and useful things with your Web site.

To make the leap from creating simple, static pages to dynamic Web applications and interactive Web sites, you need variables. Understanding what variables are, the types that a language supports, and how to use them is critical.

This chapter discusses the fundamentals ...

Get PHP for the Web: Visual QuickStart Guide, Fourth Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.