Re: [PHP-DEV] a stupid question

2008-11-19 Thread Ting Chen
thanks for answering my question, green, green, I am so green On 11/17/08, Igor Feghali <[EMAIL PROTECTED]> wrote: > maybe because "0" evaluating to false is already enough and everything > after that would be "forcing" too much. If "0.0" evaluates to false > then I would ask, why "0.0E1" doesn

Re: [PHP-DEV] a stupid question

2008-11-17 Thread Igor Feghali
maybe because "0" evaluating to false is already enough and everything after that would be "forcing" too much. If "0.0" evaluates to false then I would ask, why "0.0E1" doesn't ? What about "0.0E2" ? "0.0E10" ? etc. Just my opinion. regards, Igor. On Mon, Nov 17, 2008 at 11:22 AM, Ting Chen <[EMA

Re: [PHP-DEV] a stupid question

2008-11-17 Thread Ting Chen
i am recently studying Php5 manul. This is one of the examinations in the book. The answer is "0.0" is true rather than false. I am very curious about why if the answer is not wrong. green geen still green~ On 11/17/08, Andrew Rose <[EMAIL PROTECTED]> wrote: > 2008/11/17 Ting Chen <[EMAIL PROTEC

Re: [PHP-DEV] a stupid question

2008-11-17 Thread Federico Lebron
Andrew Rose wrote: 2008/11/17 Ting Chen <[EMAIL PROTECTED]>: Hi everybody, sorry this is a greenhand's stupid question. Why isn't "0.0" false? I know it is a string but I still think it equals to 0. I think you answered your own question there. Andrew What he means is that == is not trans

Re: [PHP-DEV] a stupid question

2008-11-17 Thread Andrew Rose
2008/11/17 Ting Chen <[EMAIL PROTECTED]>: > Hi everybody, > > sorry this is a greenhand's stupid question. Why isn't "0.0" false? I > know it is a string but I still think it equals to 0. > I think you answered your own question there. Andrew -- PHP Internals - PHP Runtime Development Mailing L

[PHP-DEV] a stupid question

2008-11-17 Thread Ting Chen
Hi everybody, sorry this is a greenhand's stupid question. Why isn't "0.0" false? I know it is a string but I still think it equals to 0. Thanks ahead, green green~~ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php