Re: [PHP] Re: How to declare Vars in PHP?

2005-05-05 Thread Rory Browne
Next time you double post(I'm assuming by accident), could you reply to one, of the posts declaring it void, and point people to the other, so that you don't have two people answering the same question in two different threads. On 5/5/05, Ryan Faricy <[EMAIL PROTECTED]> wrote: > > "Jon M." <[EMAI

[PHP] Re: How to declare Vars in PHP?

2005-05-05 Thread Jon M.
OK, thanks everyone. (BTW -I actually meant to say 'var $varName;' in PHP and 'var varName;' in JavaScript -doh!) Anyway, my question has been thoroughly answered, and I completely understand now. I did try the "var $varName;" outside a class, just to see what happened, and found out it

[PHP] Re: How to declare Vars in PHP?

2005-05-05 Thread Ryan Faricy
"Jon M." <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I know it's not necessary, but I still want to know how. > > > I know in JavaScript, that you declare vars like so: > > var = variableName; > > So I'm assuming that in PHP you do it like this: > > var = $variableName; > > But t