Book Image

Object-Oriented Programming with PHP5

By : Hasin Hayder
Book Image

Object-Oriented Programming with PHP5

By: Hasin Hayder

Overview of this book

<p>Some basic objected-oriented features were added to PHP3; with PHP5 full support for object-oriented programming was added to PHP. Object-oriented programming was basically introduced to ease the development process as well as reduce the time of development by reducing the amount of code needed. OOP can greatly improve the performance of a properly planned and designed program.</p> <p>This book covers all the general concepts of OOP then shows you how to make use of OOP in PHP5, with the aid of an ample number of examples.</p>
Table of Contents (15 chapters)
Object-Oriented Programming with PHP5
Credits
About the Author
About the Reviewers
Introduction
Index

Other Useful Functions


There are some other useful functions in the DOM library. We are not going to discuss them in depth, however they are included in this section for a one line overview.

  • DomNode->setAttribute(): Helps to set the attribute of any node

  • DomNode->hasChildNodes(): Returns true if a DOM node has a child node

  • DomNode->replaceChild(): Replaces any child node with another one

  • DomNode->cloneNode(): Creates a deep copy of the current code