Chapter 1. THE FAQS OF LIFE—THE SCRIPTS EVERY PHP PROGRAMMER WANTS (OR NEEDS) TO KNOW

THE FAQS OF LIFE—THE SCRIPTS EVERY PHP PROGRAMMER WANTS (OR NEEDS) TO KNOW

The scripts contained in this chapter answer several questions that clog PHP forums and discussion groups all over the world. They include the following:

  • How do I add Previous/Next links to my shopping cart?

  • Is there an easy way to make every other row in my table a different color?

  • I have a big array that I need to sort—help!

  • What's the best templating system to make the same HTML enclose my data on every page?

Although there are more complicated scripts later in this book, and many others that you may find more valuable, these scripts answer the questions that I see ...

Get Wicked Cool PHP 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.