2. Variables

The previous chapter covered 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 website.

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

This chapter introduces the fundamentals of variables in ...

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

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