It can be tough to learn the concepts of object-oriented programming with a language like C++. Fortunately, PHP's simple object model makes it an ideal language for learning about object-oriented programming.
For the uninitiated, this guide to the latest version of PHP offers a speedy introduction to object-oriented programming, including a thorough explanation of classes as well as coverage of constructors, destructors, inheritance, polymorphism, and interfaces. In this easy-to-follow, example-filled guide, new concepts are coupled with fully-functional, ready-to-use PHP classes (all available for download from the book’s companion website, http://objectorientedphp.com).
You’ll learn to:
Object-Oriented PHP will show you how to maximize PHP’s features, with much less work than you might think. With Object-Oriented PHP, you can master the basics of object-oriented programming and get up to speed on PHP in one fell swoop.
About the Author
Peter Lavin writes regularly on all things tech, from book reviews to web design, and runs a web development firm based in Toronto. He has been published in a number of magazines and online sites, including UnixReview.com and Doctor Dobb’s Journal, and is a contributor to PHP Hacks (O’Reilly).
Table of Contents
Chapter 1: What a Tangled Web We Weave
"A notable achievement of the book is to present PHP5 as a fully object-oriented language, a perspective that simply was not feasible before."
"The book illustrates good style in OO PHP5. The code provided is nicely written and makes intelligent use of PHP5's built-in library. The text is vernacular and confident . . . Lavin is at his best in explaining the ways different features meet needs that arise in real-world programming."
"Well-written and immediately engages the reader with practical and clearly explained examples . . . If you are part of the target audience for this book, I think you will find it of great value, and I can fully recommend it."
"By the time you've finished this book you'll have an excellent grasp of object-oriented programming . . . more importantly, you'll be able to create your own classes and extend existing ones."
"There's an interesting challenge in writing a good book about programming. At a certain point, you'll lose the newbies and alienate the technical. We had an opportunity review No Starch Press's Object-Oriented PHP, and found it fits nicely into the gap."
"Introduces OOP, explains why it's useful, and goes through to develop several sample applications to demonstrate OOPs power, and more importantly how to use it . . . I would recommend this book to beginner PHP developers, or intermediate developers who have not yet gotten their feet wet with OO."
"A practical approach."
"Lavin's book is great, because it walks you through and explains how OOP in PHP should work . . . in an approachable and understandable manner."
"An interesting and challenging book . . . Lavin has focused on a highly useful area of knowledge for web developers and has done an excellent job. Recommended."
"A top pick."
"A good book for any traditional/procedural PHP programmer who would like to know what those object-oriented PHP programmers are so excited about."
Book excerpt posted
Tech tip adapted from book included in newsletter with 25,000 subscribers
"The author takes a very practical approach that couples new concepts with easily reusable code."
From blog of well-known AJAX expert: "I've had a couple of really good books from No Starch and this is no exception to that trend."
"Lavin's approach makes this book very easy to read . . . a useful book to add to your library."