Re: [PHP] Newbie Question about Conditionals

2010-03-31 Thread Matty Sarro
After looking up the === operator, I see exactly what you mean. Thanks for your help everyone. I think the confusion was that I was always under the impression that assignment is either true or false; I would never have guessed it was equal to the value assigned. Your examples really helped to soli

Re: [PHP] Newbie Question about Conditionals

2010-03-31 Thread Richard Quadling
On 31 March 2010 05:45, Matty Sarro wrote: > That explains it perfectly, thanks you! > > On Wed, Mar 31, 2010 at 12:40 AM, Tommy Pham wrote: > >> On Tue, Mar 30, 2010 at 9:22 PM, Matty Sarro wrote: >> > Hey all! >> > This is probably my second post on the list, so please be gentle. Right >> now

Re: [PHP] Newbie Question about Conditionals

2010-03-30 Thread Matty Sarro
That explains it perfectly, thanks you! On Wed, Mar 31, 2010 at 12:40 AM, Tommy Pham wrote: > On Tue, Mar 30, 2010 at 9:22 PM, Matty Sarro wrote: > > Hey all! > > This is probably my second post on the list, so please be gentle. Right > now > > I am running through the "Heads First PHP and MySQ

Re: [PHP] Newbie Question about Conditionals

2010-03-30 Thread Tommy Pham
On Tue, Mar 30, 2010 at 9:22 PM, Matty Sarro wrote: > Hey all! > This is probably my second post on the list, so please be gentle. Right now > I am running through the "Heads First PHP and MySQL" book from O'Reilly. > It's been quite enjoyable so far, but I have some questions about some of > the

[PHP] Newbie Question about Conditionals

2010-03-30 Thread Matty Sarro
Hey all! This is probably my second post on the list, so please be gentle. Right now I am running through the "Heads First PHP and MySQL" book from O'Reilly. It's been quite enjoyable so far, but I have some questions about some of the code they're using in one of the chapters. Basically the code