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

Michael Kimsal's Blog:
PHP is not object oriented!
Feb 12, 2009 @ 14:44:10

One complaint that Michael Kimsal has about the PHP language - "PHP is *not* object oriented":

Goodness. I like PHP. I use it a lot. I’ve been using it since early 1996. I’m Zend Certified, have done billion dollar ecommerce projects in PHP, and like to think I know a little bit about PHP. It is *NOT* "object oriented". I wish people would quit saying it. Perhaps there’s a need to impress non PHP people, or to try to get across the idea that PHP supports objects. Maybe that’s fair, but I don’t think so.

His reasoning is that, despite the phrase "object oriented" being applied to PHP, its functionality does not hinge on objects. He suggests a "more correct" term to replace it - "object capable". This shows that PHP can use objects but, because of its procedural roots, doesn't have to.

tagged: object oriented capable incorrect opinion php5

Link:


Trending Topics: