O'Reilly logo

PHP Solutions: Dynamic Web Design Made Easy by David Powers

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

3 HOW TO WRITE PHP SCRIPTS

What this chapter covers:

  • Understanding how PHP is structured
  • Embedding PHP in a web page
  • Storing data in variables and arrays
  • Getting PHP to make decisions
  • Looping through repetitive tasks
  • Using functions for preset tasks
  • Displaying PHP output
  • Understanding PHP error messages

If you're the sort of person who runs screaming at the sight of code, this is probably going to be the scariest chapter in the book, but it's an important one—and I've tried to make it as user-friendly as possible. The reason for putting the rules of PHP in one chapter is to make it easier for you to dip into other parts of the book and use just the bits that you want. If there's anything you don't understand, you can come back to the relevant ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required