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

2005-05-04 Thread Rasmus Lerdorf
James Williams wrote: >>No >> >>You don't declare variables in PHP. You just start using them. >> >>Perhaps you mean assign? Since your example of >> >> var = variableName; >> >>is actually an assignment in Javascript. >> >>In PHP you simply do: >> >> $one_var = $another_var; >> >>-Rasmus > >

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

2005-05-04 Thread James Williams
> No > > You don't declare variables in PHP. You just start using them. > > Perhaps you mean assign? Since your example of > > var = variableName; > > is actually an assignment in Javascript. > > In PHP you simply do: > > $one_var = $another_var; > > -Rasmus You are however, when deali

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

2005-05-04 Thread bala chandar
Hi On 5/5/05, Jon M. <[EMAIL PROTECTED]> wrote: > 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; I think you can do like this inside a class var $variableName; > But there doesn't seem

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

2005-05-04 Thread Rasmus Lerdorf
Jon M. wrote: > 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 there doesn't seem to be a single shred of documentation on PHP.net (or > in ANY book) that covers this. All they s