Re: [PHP] Re: [suspicious - maybe spam] Re: [suspicious - maybe spam] [PHP] Simple question: How to declareVars in PHP? (I know it's not necessary, but I still want to know)

2005-05-05 Thread bala chandar
hi, On 5/5/05, Jon M. <[EMAIL PROTECTED]> wrote: > Oops!! What I meant was: > > JavaScript: > > var varName; > > PHP: > > var $varName; > > I can't believe I did that (I have been writing JavaScript for a few years, > and know better -I gotta get more sleep). > > So, are you saying that it i

Re: [PHP] Re: [suspicious - maybe spam] Re: [suspicious - maybe spam] [PHP] Simple question: How to declareVars in PHP? (I know it's not necessary, but I still want to know)

2005-05-05 Thread Rasmus Lerdorf
Jon M. wrote: > So, are you saying that it is absolutely "PHP-illegal" to do: Yes, it is illegal. Inside a class definition you can define properties like this, but for regular variables it is simply not supported. And it makes no sense. If you can't stop your hands from typing this stuff, do t

[PHP] Re: [suspicious - maybe spam] Re: [suspicious - maybe spam] [PHP] Simple question: How to declareVars in PHP? (I know it's not necessary, but I still want to know)

2005-05-04 Thread Jon M.
Oops!! What I meant was: JavaScript: var varName; PHP: var $varName; I can't believe I did that (I have been writing JavaScript for a few years, and know better -I gotta get more sleep). So, are you saying that it is absolutely "PHP-illegal" to do: var $varName; in PHP??? W