
At a Glance
Format
PDF
eText
$99.00
or 4 interest-free payments of $24.75 with
orInstant online reading in your Booktopia eTextbook Library *
Why choose an eTextbook?
Instant Access *
Purchase and read your book immediately
Read Aloud
Listen and follow along as Bookshelf reads to you
Study Tools
Built-in study tools like highlights and more
* eTextbooks are not downloadable to your eReader or an app and can be accessed via web browsers only. You must be connected to the internet and have no technical issues with your device or browser that could prevent the eTextbook from operating.
With the surge of popularity of PHP 5, 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 won't 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 object-oriented programming 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 you'll 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 this book is 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 asPHP Solutions, or one of the PHP books for Dreamweaver and feels ready to tackle something a little more challenging.
on
Desktop
Tablet
Mobile
Cover -- TOC$Contents -- About the Author -- About the Technical Reviewer -- Acknowledgments -- Introduction -- CH$Chapter 1: Why Object-Oriented PHP? -- Understanding basic OOP concepts -- How OOP evolved -- Using classes and objects -- Protecting data integrity with encapsulation -- Polymorphism is the name of the game -- Extending classes through inheritance -- Using best practice -- How OOP has evolved in PHP -- OOP since PHP 5 -- Preparing for PHP 6 -- Choosing the right tools to work with PHP classes -- Using a specialized script editor -- Chapter review -- CH$Chapter 2: Writing PHP Classes -- Formatting code for readability -- Using the Zend Framework PHP Coding Standard -- Choosing descriptive names for clarity -- Creating classes and objects -- Defining a class -- Controlling access to properties and methods -- Setting default values with a constructor method -- Using inheritance to extend a class -- Defining a child class -- Accessing a parent class's methods and properties -- Controlling changes to methods and properties -- Loading classes automatically -- Exploring advanced OOP features -- Creating abstract classes and methods -- Simulating multiple inheritance with interfaces -- Understanding which class an object is an instance of -- Using magic methods -- Converting an object to a string -- Cloning an object -- Accessing properties automatically -- Accessing methods automatically -- Cleaning up with a destructor method -- Handling errors with exceptions -- Throwing an exception -- Catching an exception -- Extracting information from an exception -- Extending the Exception class -- Using comments to generate code hints -- Writing PHPDoc comments -- Chapter review -- CH$Chapter 3: Taking the Pain Out of Working with Dates -- Designing the class -- Examining the built-in date-related classes -- Deciding how to extend the existing classes -- Building the class -- Creating the class file and constructor -- Resetting the time and date -- Accepting dates in common formats -- Outputting dates in common formats -- Outputting date parts -- Performing date-related calculations -- Creating a default date format -- Creating read-only properties -- Organizing and commenting the class file -- Chapter review -- CH$Chapter 4: Using PHP Filters to Validate User Input -- Validating input with the filter functions -- Understanding how the filter functions work -- Setting filter options -- Setting a default filter -- Building the validation class -- Deciding what the class will do -- Planning how the class will work -- Coding the validation class properties and methods -- Using the validation class -- Sticking to your design decisions -- Chapter review -- CH$Chapter 5: Building a Versatile Remote File Connector -- Designing the class -- Building the class -- Defining the constructor -- Checking the URL -- Retrieving the remote file -- Final testing -- Ideas for improving the class -- Chapter review -- CH$Chapter 6: SimpleXML-Couldn't Be Simpler -- A quick XML primer -- What is XML? -- How XML documents are structured -- The rules of writing XML -- Using SimpleXML -- Loading an XML document with SimpleXML -- Extracting data with SimpleXML -- Saving and modify.
ISBN: 9781430210122
ISBN-10: 1430210125
Published: 24th September 2008
Format: PDF
Language: English
Publisher: Springer Nature
You Can Find This eBook In

eTEXT
$54.99

eBOOK
$44.99

eBOOK
eBook
RRP $54.99
$49.49
10%
OFF
OFF

eBOOK
RRP $61.59
$55.99

eBOOK
eBook
$44.99

eBOOK
Flutter Cookbook
Build modern cross-platform apps with Flutter 3, Dart 3, and practical AI integrations
eBook
RRP $54.99
$49.49
10%
OFF
OFF
This product is categorised by
- Non-FictionComputing & I.T.Computer Programming & Software DevelopmentProgramming & Scripting Languages
- Non-FictionComputing & I.T.Computer Programming & Software DevelopmentObject-Oriented Programming or OOP
- Non-FictionComputing & I.T.Computer Programming & Software DevelopmentSoftware Engineering
- Non-FictionComputing & I.T.Computer Programming & Software DevelopmentWeb Programming


















