Section III

Objects and Classes

  • Lesson 12: Introducing Object-Oriented Programming
  • Lesson 13: Defining Classes
  • Lesson 14: Using Classes
  • Lesson 15: Using Advanced Techniques

The first level in PHP programming is writing scripts, which is just sequential lines of PHP code or bits of PHP interspersed with HTML. The second level is procedural programming, which you learned in Lesson 10 when you started moving code into functions. The next level is object-oriented programming (OOP).

In Lesson 12, you learn the basic concepts of object-oriented programming and why you would want to use it. In the next two lessons you learn how to create classes and use them. The final lesson of this section teaches the more advanced object-oriented techniques.

Get PHP and MySQL® 24-Hour Trainer now with the O’Reilly learning platform.

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