Re: Ok, why is this happening...

From: Date: Tue, 19 Jul 2005 16:46:45 +0000
Subject: Re: Ok, why is this happening...
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-218976@lists.php.net to get a copy of this message
> Chris Boget wrote: > <snip> > > echo "if( $originalNet != $calculatedNet ) = " . ( (int)$originalNet !== > > (int)$calculatedNet ) . "<br>\n"; > </snip> > Change this to echo out what you're comparing... > echo "if( ". (int)$originalNet ." != ". (int)$calculatedNet ." ) = > " . ( > (int)$originalNet !== (int)$calculatedNet ) . "<br>\n"; > That'll show what numbers is actually trying to match. Ok, then that begs the following questions: If I don't cast any of the values, why do they display as being identicle? Additionally, why does every IF check fail in that case? thnx, Chris

« previous php.general (#218976) next »