O'Reilly logo

PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide, Fourth Edition by Larry Ullman

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

16. An OOP Primer

In This Chapter

Fundamentals and Syntax 494

Working with MySQL 497

The DateTime Class 511

Review and Pursue 518

PHP is somewhat unusual as a language in that it can be used both procedurally, as most of this book demonstrates, and as an Object-Oriented Programming (OOP) language. There are merits to both approaches, and one ought to be familiar with each as well (eventually).

Unfortunately, mastery of OOP requires lots of time and information: my PHP 5 Advanced: Visual QuickPro Guide (Peachpit Press) spends 150 pages on the subject! Still, one of the great things about OOP is that you can use it without fully knowing it. You’ll see what this means shortly.

In this chapter, which is new to this edition of the book, is a primer ...

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