Prev | Current Page 16 | Next

W. Jason Gilmore

"Beginning PHP and MySQL: From Novice to Professional"

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156
Calculating an Array Intersection . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
Calculating Associative Array Intersections . . . . . . . . . . . . . . . . . . . 158
Calculating Array Differences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
Calculating Associative Array Differences . . . . . . . . . . . . . . . . . . . . 159
Other Useful Array Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160
Returning a Random Set of Keys . . . . . . . . . . . . . . . . . . . . . . . . . . . 160
Shuffling Array Elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162
?– CHAPTER 6 Object-Oriented PHP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163
The Benefits of OOP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
Encapsulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
Inheritance. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
Polymorphism . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166
?– CONTENTS xi
Key OOP Concepts .


Pages:
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28