With the surge of popularity of PHP 5, and with PHP 6 just around the corner, Object-Oriented Programming is now an important consideration for PHP developers. This version-neutral book is a gentle introduction to Object-Oriented Programming (OOP) that wont overburden you with complex theory. It teaches you the essential basics of OOP that youll need to know before moving onto a more advanced level, and includes a series of pre-packaged scripts that you can incorporate into your existing sites with the minimum of effort. It shows how OOP can be used to create reusable and portable code by walking you through a series of simple projects. The projects feature the sorts of things developers run up against every day, and include a validator for filtering user input, a simple Date class that avoids the need to remember all the esoteric format codes in PHP, and an XML generator.
- Teaches the fundamentals of OOP
- Simple projects show how OOP concepts work in the real world
- Pre-packaged scripts can easily be added to your own projects
What youll learn
- PHP features, such as the Standard PHP Library (SPL), that are poorly documented or ignored by existing books
- How to develop classes of their own
- OOP in easy-to-understand language without getting bogged down in dense theory
- Solid foundations for developers wishing to delve more deeply into OOP
- How to leverage the strengths of OOP as a means for creating reusable code that can be used successfully within a procedural context
- How to code for both PHP 5 and 6
Who is this book for?
This book is aimed at intermediate-level PHP developers who want to take their skills to the next level by exploring object-oriented programming as a way of creating reusable code for a everyday website tasks. A typical reader would be someone who has read one of the authors previous title, such as PHP Solutions, or one of the PHP books for Dreamweaverand feels ready to tackle something a little more challenging.
About the Author
David Powers is an Adobe Community Expert for Dreamweaver and author of a series of highly successful books on PHP, including PHP Solutions: Dynamic Web Design Made Easy (friends of ED, ISBN-13: 978-1-59059-731-6) and Foundation PHP for Dreamweaver 8 (friends of ED, ISBN-13: 978-1-59059-569-5). As a professional writer, he has been involved in electronic media for more than 30 years, first with BBC radio and television and more recently with the Internet. His clear writing style is valued not only in the English-speaking world; several of his books have been translated into Spanish and Polish.
What started as a mild interest in computing was transformed almost overnight into a passion, when David was posted to Japan in 1987 as BBC correspondent in Tokyo. With no corporate IT department just down the hallway, he was forced to learn how to fix everything himself. When not tinkering with the innards of his computer, he was reporting for BBC TV and radio on the rise and collapse of the Japanese bubble economy. Since leaving the BBC to work independently, he has built up an online bilingual database of economic and political analysis for Japanese clients of an international consultancy.
When not pounding the keyboard writing books or dreaming of new ways of using PHP and other programming languages, David enjoys nothing better than visiting his favorite sushi restaurant. He has also translated several plays from Japanese.
Desktop Witness: The Do's and Don'ts of Personal Computer Security
When asked 'who are you?', people in different cultures tend to define themselves
fundamentally differently in terms of what their respective culture considers to be
most important. In cultures where one's professional and economic status is most
important, people say 'I am an engineer', or 'a priest at St...
eBay For Canadians For Dummies
eBay For Canadians For Dummies is the perfect primer to one of the world’s most popular Web sites. From how to find that perfect item, to winning it at the perfect price and having it shipped to you, it covers the whole experience of buying. Power Sellers Marsha Collier and Bill Summers also help you make money on eBay, telling...
G Protein-Coupled Receptors in Drug Discovery (Drug Discovery Series)
The broad range of G protein-coupled receptors (GPCRs) encompasses all areas of modern medicine and have an enormous impact on the process of drug development. Using disease-oriented methods to cover everything from screening to expression and crystallization, G Protein-Coupled Receptors in Drug Discovery describes the physiological...
Advances in Security and Payment Methods for Mobile Commerce Recently, the emergence of wireless and mobile networks has made possible the admission of electronic commerce to a new application and research subject: mobile commerce, defined as the exchange or buying and selling of commodities, services, or information on the Internet through the use of mobile handheld devices. In just a few years, mobile... Digital Design and Fabrication After nearly six years as the field's leading reference, the second edition of the award-winning Computer Engineering Handbook reemerges with completely updated content and a brand new, two-volume format. Part of this monumental revision, Digital Design and Fabrication surveys the latest advances in computer architecture and design and the...