Re: [PHP] Overwrite value of true or false in PHP

2009-09-07 Thread Bobby Pejman
had to rewrite a lot of code after discovering it. Good times... Thanks for clarifying everyone. -Original Message- From: Martin Scotta Date: Mon, 7 Sep 2009 16:43:59 To: Cc: Subject: Re: [PHP] Overwrite value of true or false in PHP On Mon, Sep 7, 2009 at 4:14 PM, Bobby Pejma

Re: [PHP] Overwrite value of true or false in PHP

2009-09-07 Thread Eddie Drapkin
On Mon, Sep 7, 2009 at 3:14 PM, Bobby Pejman wrote: > Hi, > > I noticed that the following returns a 1. > > echo (1<2) ? True : False > > I was under the impression that true/false are of type boolean and not int.   > But in php anything other than 0 translates to true, meaning a 1.  What I am > t

Re: [PHP] Overwrite value of true or false in PHP

2009-09-07 Thread Martin Scotta
On Mon, Sep 7, 2009 at 4:19 PM, Ashley Sheridan wrote: > On Mon, 2009-09-07 at 19:14 +, Bobby Pejman wrote: > > Hi, > > > > I noticed that the following returns a 1. > > > > echo (1<2) ? True : False > > > > I was under the impression that true/false are of type boolean and not > int. But in

Re: [PHP] Overwrite value of true or false in PHP

2009-09-07 Thread Martin Scotta
On Mon, Sep 7, 2009 at 4:14 PM, Bobby Pejman wrote: > Hi, > > I noticed that the following returns a 1. > > echo (1<2) ? True : False > > I was under the impression that true/false are of type boolean and not int. > But in php anything other than 0 translates to true, meaning a 1. What I > am t

Re: [PHP] Overwrite value of true or false in PHP

2009-09-07 Thread Ashley Sheridan
On Mon, 2009-09-07 at 19:14 +, Bobby Pejman wrote: > Hi, > > I noticed that the following returns a 1. > > echo (1<2) ? True : False > > I was under the impression that true/false are of type boolean and not int. > But in php anything other than 0 translates to true, meaning a 1. What I a