Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21236 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90061 invoked by uid 1010); 15 Dec 2005 17:19:13 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 90046 invoked from network); 15 Dec 2005 17:19:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Dec 2005 17:19:13 -0000 X-Host-Fingerprint: 195.130.132.56 adicia.telenet-ops.be Linux 2.4/2.6 Received: from ([195.130.132.56:57188] helo=adicia.telenet-ops.be) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id CB/69-23096-F85A1A34 for ; Thu, 15 Dec 2005 12:19:11 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by adicia.telenet-ops.be (Postfix) with SMTP id 0357C3859B for ; Thu, 15 Dec 2005 18:19:09 +0100 (CET) Received: from [127.0.0.1] (dD5766D15.access.telenet.be [213.118.109.21]) by adicia.telenet-ops.be (Postfix) with ESMTP id 8A6A23843A for ; Thu, 15 Dec 2005 18:19:08 +0100 (CET) Message-ID: <43A1A588.5060202@telenet.be> Date: Thu, 15 Dec 2005 18:19:04 +0100 Reply-To: melis.hans@telenet.be User-Agent: Thunderbird 1.5 (Windows/20051025) MIME-Version: 1.0 To: php-dev References: <43A0F0BB.6080009@chiaraquartet.net> In-Reply-To: <43A0F0BB.6080009@chiaraquartet.net> X-Enigmail-Version: 0.93.1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 0550-3, 15/12/2005), Outbound message X-Antivirus-Status: Clean Subject: Re: [PHP-DEV] why is '01' == '1.'? From: melis.hans@telenet.be (Hans Melis) Greg Beaver wrote: > Hi all, > > I realize that 1 == '01' and 1 == '1.', but why is this next code also > bool(true)? > > 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