[thelist] how object oriented is php4

Prachi Soni prachi_soni at yahoo.com
Thu Mar 27 10:13:36 CST 2003

i realy apreciate your reply.Thanx. Few basic object-oriented features like encapsulation, polymorphism, inheritance,and others like nesting of objects and arrays,aliasing,and so on.I am curious to know how much php4 supports each of theses and other OO features.
anykind of help is appreciated.
Thank you
 "Andrew Embler (ML)" <lists at electricstate.com> wrote:on 3/26/03 7:31 PM, Prachi Soni at prachi_soni at yahoo.com wrote:

> Hi,
> I was wondering how object-oriented is php4? What characteristics makes it
> object oriented and what all stops it?.It would be great if I get few thoughts
> on it.
> Soni

Well let's see...I really enjoy working with PHP, so it surprises me that
I'm going to open this discussion with some mildly disparaging remarks, but
one part of PHP that frustrates me (in comparison to true object-oriented
languages like Java) is its lack of typing. For example, I can't, in a
class, declare several separate functions which take discreet types.

function thisFunction(int iVar) {
# Here we do some integer related functions

function thisFunction(string sVar) {
# Here we do some string-related stuff

This is the sort of thing that doesn't really seem terribly important until
you'd like to use it. PHP's general ease-of-use and accommodating nature is
great - when you're first learning it - but it becomes slightly limiting as
you become more experienced.


* * Please support the community that supports you. * *

For unsubscribe and other options, including the Tip Harvester 
and archives of thelist go to: http://lists.evolt.org 
Workers of the Web, evolt ! 

Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!

More information about the thelist mailing list