Re: Newbie question about Classes

From: Date: Tue, 24 Apr 2001 17:06:23 +0000
Subject: Re: Newbie question about Classes
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-50127@lists.php.net to get a copy of this message
http://phpbuilder.com/columns/rod19990601.php3 This is almost a religious debate in itself, but some brief info anyway. ""SED"" <sed@sed.is> wrote in message news:ENEOJNIFNHDJGLGDKILNIEPCEEAA.sed@sed.is... > Hi, > > I have now been 3-4 months writing PHP-codes and read the PHP manual > throughout. But there is one thing I can't figure out properly (I think it's > not covered enough in the manual): Classes! I am fairly certain it is covered in the manual. Chapter 13. Classes and Objects(http://php.net/manual/en/language.oop.php) > When and why would I use it? It is a preferential manner of coding. It is not strictly necessary in any situation, but there are some arguments about when it should be used and when it shouldn't(unless your a Java programmer). I have found OOP to be very useful for some large projects, and for others I have avoided it for no other reason than I didn't feel like coding my app that way on that particular day. > Is it only to group certain functions or does it have a special function? As I said it is just another style of coding. Take a shot at writing an OO app. It takes some getting used to, but its something everyone should at least know so at the very least you can understand someone else's code. > Thanks! > > Regards, > Sumarlidi Einar Dadason > > SED - Graphic Design -- phill

« previous php.general (#50127) next »