Re: [PHP-DEV] why is '01' == '1.'?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



actually, you're right in that (colder.ch) since what happens here is a conversion. This applies to all these 'logic cases' posted. When something is converted to something else, as part of a process, you can't state that the process returns unique results (meaning the result always points back to the same input), and as such you can't state a lot of various things posted in this thread.

But this is all OT, and really should be moved off the list, or at least to the generals list.

- tul
colder.ch wrote:
No, this rule of logic can't be applied : 2 == true and true == 10, but
2 != 10

It all depends on the types of the compared values.


Hans Melis wrote:


a == b and a == c implies by the rules of logic that b == c



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux