News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Lorna Mitchell:
Introduction to PHP OOP
October 15, 2012 @ 11:56:06

Making the transition from the procedural PHP world into the object-oriented world of some more complex applications can be difficult. It requires a shift in thinking that might take some learning. Lorna Mitchell has posted an introduction to some of the common concepts.

Since the introduction of PHP 5 in 2004, PHP has had an object model worthy of that description and became a truly modern language for use on the web. [...] Using OOP (Object Orientated Programming) enables us to architect our systems much more clearly, and to make them more manageable and more maintainable. This technique also allows us to separate form from function to create clean, navigable codebases with plenty of opportunities to reuse code, apply design patterns and bring in concepts from other brances of computer science.

She covers some of the more common pieces you'll need to know to start venturing into OOP in PHP including: objects versus classes, using properties/methods, inheritance and access modifiers. Some sample code is included that works with user records in a database (along with the SQL to create the tables).

0 comments voice your opinion now!
introduction objectoriented programming class object


blog comments powered by Disqus

Similar Posts

PHPit.net: PHP5 Class Basics, Part 1

Stubbles Blog: Lazy loading of classes stored in a session without __autoload()

Hasin Hayder's Blog: My book on OOP-PHP5 has been published

Brandon Savage's Blog: 5 (Good) Lessons The Government Teaches Us About Object-Oriented Programming

Christian Stocker's Blog: FOTD: REFLECTIONCLASS()->NEWINSTANCEARGS($ARGS) is "slow"


Community Events





Don't see your event here?
Let us know!


list introduction opinion tool series voicesoftheelephpant security conference podcast language composer symfony library laravel framework interview release community artisanfiles version

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework