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
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
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
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
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
5 matches
Mail list logo