On Mon, 2009-09-07 at 19:14 +, Bobby Pejman wrote:
Hi,
I noticed that the following returns a 1.
echo (12) ? 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
On Mon, Sep 7, 2009 at 4:14 PM, Bobby Pejman bpej...@gmail.com wrote:
Hi,
I noticed that the following returns a 1.
echo (12) ? 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
On Mon, Sep 7, 2009 at 4:19 PM, Ashley Sheridan
a...@ashleysheridan.co.ukwrote:
On Mon, 2009-09-07 at 19:14 +, Bobby Pejman wrote:
Hi,
I noticed that the following returns a 1.
echo (12) ? True : False
I was under the impression that true/false are of type boolean and not
On Mon, Sep 7, 2009 at 3:14 PM, Bobby Pejmanbpej...@gmail.com wrote:
Hi,
I noticed that the following returns a 1.
echo (12) ? 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
a lot of code after
discovering it. Good times...
Thanks for clarifying everyone.
-Original Message-
From: Martin Scotta martinsco...@gmail.com
Date: Mon, 7 Sep 2009 16:43:59
To: bpej...@gmail.com
Cc: php-general@lists.php.net
Subject: Re: [PHP] Overwrite value of true or false in PHP
5 matches
Mail list logo