Greg Beaver wrote: > Hi all, > > I realize that 1 == '01' and 1 == '1.', but why is this next code also > bool(true)? > > <?php > var_dump('1.' == '01'); > ?> >
That is pure logic... a == b and a == c implies by the rules of logic that b == c -- Hans avast! Antivirus: Outbound message clean. Virus Database (VPS): 0550-3, 15/12/2005 Tested on: 15/12/2005 18:19:04 avast! - copyright (c) 1988-2005 ALWIL Software. http://www.avast.com -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php