Re: Object oriented??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Yes of course...but was confused since some says it is so and some says it
is not...So thought of asking the pros..

It is. PHP4 had limited support for OOP, though it was quite usable. PHP5 goes further and provides pretty much everything else. See the documentation on php.net for the complete language reference.

I guess this is where the OP's confusion stemmed from (Robert said Yes, I said No)! A liberal definition of OO is "An adjective applied to any system or language that supports the use of objects", under which PHP would qualify. But, in strict OO languages, everything must be done using objects. You can't even do a simple "Hello, World" without them (I could be wrong on this, of course). With that understanding PHP would not be OO.


So, in short, PHP __supports__ objects but does not __require__ them.

There's a good chance that 20 people will chime in now, with their own corrections.
Larry


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux