You are here: Re: Object Oriented PHP « PHP Programming Language « IT news, forums, messages
Re: Object Oriented PHP

Posted by Tony Marston on 06/24/06 08:49

"NC" <nc@iname.com> wrote in message
news:1151127795.486389.113090@b68g2000cwa.googlegroups.com...
> 427SOHC wrote:
>>
>> If I haven't worked with OOP much would PHP be a safe
>> starting point, or is there a better programming language
>> to start with?
>
> If you haven't worked with OOP before, start by learning OOP in the
> language you otherwise know well. Once you understand the basic
> concepts (encapsulation, inheritance, polymorphism, etc.), you will be
> able to ask intelligent questions about how those concepts are
> implemented in other languages.
>
> Also, note that PHP 4 and PHP 5 have different object models; the one
> in PHP 5 is more in line with what you find in other languages, while
> the one in PHP 4 is simpler, but more restrictive.

"More restrictive" is a point of view. It is possible to write OO code in
PHP 4 that also runs in PHP 5, as I have proved with my sample application
and later my full-blown framework.

AFAIAC the extra OO features in PHP 5 are nothing more than eye candy as
they do not provide any additional functionality which is worthy of merit.
They were only included to appease the OO purists.

--
Tony Marston
http://www.tonymarston.net
http://www.radicore.org

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация