Re: [PHP] Re: class usage

2006-09-29 Thread Martin Alterisio
2006/9/29, M.Sokolewicz <[EMAIL PROTECTED]>: Well, you could say that there is no difference really. Classes are mainly used as collections; They're a collection of functions (methods) sharing a common goal/dataset/whatever. That's a module, my friend, not a class: http://en.wikipedia.org/wik

[PHP] Re: class usage

2006-09-29 Thread M.Sokolewicz
Well, you could say that there is no difference really. Classes are mainly used as collections; They're a collection of functions (methods) sharing a common goal/dataset/whatever. One real world example is with database abstraction layers. Say you have a script like: Now, if you suddenly deci