Re: Re[2]: [PHP] declaring variables in class definitions

2001-01-10 Thread Toby Butzon
riginal Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 10, 2001 3:31 PM Subject: Re: Re[2]: [PHP] declaring variables in class definitions > Hi Toby, > > > >This isn't really aesthetics as much as it is organization. > >

Re: Re[2]: [PHP] declaring variables in class definitions

2001-01-10 Thread sam1600
Hi Toby, >This isn't really aesthetics as much as it is organization. >You already know that you don't have to declare PHP >variables... if I had a one-line script that simply said: > >I would end up with 1 as the output. myVar would be created >as soon as PHP encountered it (it would be empty,

Re: Re[2]: [PHP] declaring variables in class definitions

2001-01-10 Thread Toby Butzon
; To: <[EMAIL PROTECTED]> Sent: Wednesday, January 10, 2001 1:55 PM Subject: Re: Re[2]: [PHP] declaring variables in class definitions > > Max, > > Thanks for your response. > > Assigning something to $d->somevar when it is not declared in the > definition works fin

Re: Re[2]: [PHP] declaring variables in class definitions

2001-01-10 Thread Joe Stump
They don't break the classes per se, but it definately promotes good OOP structure. Keep this in mind for PHP 5 and PHP 6 which might (who knows) bring us more strict OOP rules (ie private and public variables). In which case your classes would have to be entirely rewritten instead of just puttin

Re: Re[2]: [PHP] declaring variables in class definitions

2001-01-10 Thread sam1600
Max, Thanks for your response. Assigning something to $d->somevar when it is not declared in the definition works fine. As far as I can tell, and from what we have found here, there is absolutly no reason whatsoever to define variables in class definitions. If someone can show me me a reason