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

Get PHP for the World Wide Web, Second Edition: Visual Quickstart Guide 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.