I'll be introducing one of the more interesting and useful methods of writing PHP scripts -- the object-oriented method. Those of you who might have experience with an object-oriented programming language such as Java or even C++ will find themselves right at home with most of the concepts I'll begin outlining here. However, be warned -- PHP objects have a mixture of C++ and Java, making them a little different than what you might be used to. In any case, let's get started with the basics.
Introduction to PHP Objects, Part 1
Tuesday, April 25, 2006
Introduction to PHP Objects, Part 1
Posted by Slava at 8:27 PM 0 comments Labels: PHP Programming
Object Oriented PHP: Paging Result Sets
If as a PHP developer you find yourself writing the same code again and again, or dealing with an increasingly stifling array of custom functions and include files in your script, it's probably time you looked into Object Oriented Programming (OOP). OOP has truly come into its own over the past 5 years or so. The world over, application and Web developers alike have discovered the merits of this type of software design, and now it's your turn!
In this article, I'll teach you the basic principles and features of Object Oriented Programming that exist in the PHP language, and take you through a few simple examples so you can see how it all works. We'll then take this newfound knowledge and apply it to a practical problem. Together, we'll create a reusable component that will handle the splitting of MySQL result sets into pages.
Object Oriented PHP
Posted by Slava at 8:19 PM 0 comments Labels: PHP Programming