Re: why is '01' == '1.'?
| From: | M. Sokolewicz | Date: | Thu, 15 Dec 2005 17:38:54 +0000 |
| Subject: | Re: why is '01' == '1.'? | ||
| References: | 1 2 3 | Groups: | php.general php.internals |
| Request: | Send a blank email to internals+get-21238@lists.php.net to get a copy of this message | ||
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