PHP 5 offers standardized means for specifying
the variety of property scopes typically offered by full-featured OO languages.
What This Book Covers
Chapter 1 introduces object-oriented programming and how it fits for PHP. Some
benefits of functional programming over procedural programming are highlighted.
In Chapter 2 you learn to create objects and define their properties and methods.
Details of classes, properties, and methods follow, along with the scope of methods.
This chapter shows you the benefits of using interfaces and a few other basic OOP
features in PHP to kick start your journey through OOPing in PHP.
Now that you have got your basics done for OOP in PHP, Chapter 3 helps you to
strengthen your base. It helps you to deal with more details and some advanced
features. For example, you learn about class information functions, which allows
you to investigate details of any class. This chapter takes you through some handy
object-oriented information functions, exception handling, iterators, and storing
objects using serialization.
In Chapter 4 you learn some of the Design Patterns and how to implement them in
PHP. These are an essential part of OOP and make your code more effective, more
efficient, and easier to maintain.
Pages:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25