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 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.