Chapter 1. Getting Started with PHP

When you’re learning any new programming language you should always begin with an understanding of the basic syntax, and that’s what I’ll introduce in this chapter. I’ll primarily discuss the fundamentals, but I’ll also cover some recommended programming techniques that will improve your work in the long run.

If you’ve never programmed before, a deliberate reading of this chapter will start you on the right track. If you have some programming experience, you’ll be able to breeze through this section, gaining a reference for the book’s remaining material in the meantime. By the end of this chapter you will have successfully written and executed your first PHP scripts and be on your way to developing dynamic Web ...

Get PHP for the World Wide Web, Second Edition: Visual Quickstart Guide now with O’Reilly online learning.

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