Re: possible bug (string equality to zero)?

From: Date: Thu, 11 Aug 2005 16:57:33 +0000
Subject: Re: possible bug (string equality to zero)?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-220448@lists.php.net to get a copy of this message
> [snip] > Is it a bug that ($var == 0) is always true for any string $var? > [/snip] > > You are comparing a string to an integer. Right. This is clearly documented at http://www.php.net/operators.comparison

« previous php.general (#220448) next »