Re: [PHP] class usage

2006-10-03 Thread Richard Lynch
. any > other > comments would also be appreciated... thanks again. > - Original Message - > From: "Richard Lynch" <[EMAIL PROTECTED]> > To: "benifactor" <[EMAIL PROTECTED]> > Cc: "php" > Sent: Friday, September 29, 2006 9:07 AM &g

Re: [PHP] class usage

2006-10-03 Thread Richard Lynch
On Fri, September 29, 2006 1:21 pm, Robert Cummings wrote: > #3 In PHP > PHP has no namespaces, use classes to improve your chances of avoiding > namespace collisions. > > And I realize Richard will call this the wrong answer, but when you > don't have the tools you need, you make use of the ones y

Re: [PHP] class usage

2006-09-29 Thread benifactor
- From: "Richard Lynch" <[EMAIL PROTECTED]> To: "benifactor" <[EMAIL PROTECTED]> Cc: "php" Sent: Friday, September 29, 2006 9:07 AM Subject: Re: [PHP] class usage > On Fri, September 29, 2006 4:35 am, benifactor wrote: > > ..and this seems to work

Re: [PHP] class usage

2006-09-29 Thread Robert Cummings
On Fri, 2006-09-29 at 11:07 -0500, Richard Lynch wrote: > On Fri, September 29, 2006 4:35 am, benifactor wrote: > > ..and this seems to work fine, i could easily add the mail function > > and insert real variables into send() but what i don't understand is i > > could also easily do this without a

Re: [PHP] class usage

2006-09-29 Thread Richard Lynch
On Fri, September 29, 2006 4:35 am, benifactor wrote: > ..and this seems to work fine, i could easily add the mail function > and insert real variables into send() but what i don't understand is i > could also easily do this without a class... so i guess the real > question is what are some real l

Re: [PHP] class usage

2006-09-29 Thread Martin Alterisio
2006/9/29, Ray Hauge <[EMAIL PROTECTED]>: I think people have pretty much hit the nail on the head with OOP. One thing that I would like to point out is that OOP isn't necessarily needed in every case. Actually there's never a need to use OOP. As I said before OOP doesn't provide anything in

Re: [PHP] class usage

2006-09-29 Thread Martin Alterisio
2006/9/29, benifactor <[EMAIL PROTECTED]>: ok, about five minutes ago i decided to learn classes and delve into php's oop side. what i came up with was this... //start example code class newsletter { function send ($email,$subject,$message) { if ($email) { echo("th

Re: [PHP] class usage

2006-09-29 Thread Ray Hauge
On Friday 29 September 2006 4:35 am, benifactor wrote: > the real question is what > are some real life examples of class usage and why is it used as opposed > to regular non oop? thank you for any input into the subject that you may > have. I think people have pretty much hit the nail on the hea

Re: [PHP] class usage

2006-09-29 Thread Brad Bonkoski
benifactor wrote: ok, about five minutes ago i decided to learn classes and delve into php's oop side. what i came up with was this... //start example code class newsletter { function send ($email,$subject,$message) { if ($email) { echo("the following message was

[PHP] class usage

2006-09-29 Thread benifactor
ok, about five minutes ago i decided to learn classes and delve into php's oop side. what i came up with was this... //start example code class newsletter { function send ($email,$subject,$message) { if ($email) { echo("the following message was sent to: $email subj