newbie to classes

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jaymoore_299
Forum Contributor
Posts: 128
Joined: Wed May 11, 2005 6:40 pm
Contact:

newbie to classes

Post by jaymoore_299 »

I've never really had to use classes before, reading through a tutorial, I'm getting the idea that it seems to serve as a container for a bunch of functions that are somehow related (or are used together frequently) is this correct?
So if I had a whole bunch of functions, like 100, and 5 of them I used often to manipulate images, then basically classes can be used to put those 5 apart from the other ones into a class to make for better organization.
What advantages are there to using classes other than for making for better organization of functions?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

ack... before you go any further, read the several existing threads on OOP and such and such...

viewtopic.php?t=40450 is a start...
Post Reply