News Feed
Sections




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

Tectonic.co.za:
Getting your head around PHP objects
August 08, 2006 @ 06:02:20

In a new article from Tectonic today, Jason Norwood-Young takes a look at one of the harder things for beginning PHP developers to understand - objects.

Still the practice of using objects in PHP remains a bit of a lost art - you're more likely to find an application with a bunch of functions than objects. PHP just lends itself to function-like thinking.

That doesn't mean that you shouldn't take advantage of the object-oriented (OO) features of PHP. The big question is when. Deciding when to implement a bit of code as an object or as a function is the real trick of object-oriented programming (OOP) in PHP (or as I like to call it, POOP). If you get that right, you can save yourself a lot of time and hassle down the line.

Jason starts off with the differences between OOP and regular, procedural programming, explaining it with a series of reasons/times to choose OOP. Of course, code examples are a must, and a few are included, showing the structure of classes and how to create new objects from them. He explains the PHP5 functionality offered as well, including private/public/protected values and functions.

0 comments voice your opinion now!
objects understand introductory tutorial oop procedural objects understand introductory tutorial oop procedural


blog comments powered by Disqus

Similar Posts

DevShed: Creating the Blog Script for a PHP/MySQL Blogging System (Part 2)

International PHP Magazine: Poll Question: What is the Top Mistake That PHP Coders Commit?

PHPBuilder.com: Using XML, Part 5 - SOAP and WSDL

HowTo Forge: Fedora 8 Server Setup - LAMP, Email, DNS, FTP, ISPConfig - Page 6

Developer Tutorials Blog: 5 Ways to be a Better PHP Developer


Community Events





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


release framework zendserver symfony package library interview unittest language series api voicesoftheelephpant laravel podcast install opinion community introduction deployment bugfix

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