From:             [EMAIL PROTECTED]
Operating system: Suse Linux 7.0
PHP version:      4.0.4pl1
PHP Bug Type:     *General Issues
Bug description:  Unexpected string comparison behaviour

$var1  = "0000009";        // string
settype ($var1, 'string'); // ...but just to be sure
echo 'var1 is a ' . gettype ($var1) . "<BR>\n";

$var2 = "9";               // string
settype ($var2, 'string'); // ...but just to be sure
echo 'var2 is a ' . gettype ($var2) . "<BR>\n";

if ($var1 == $var2)
        echo '...which seems to indicate that "' . $var1 . '" is the same as "' . 
$var2 . '" ??';


-- 
Edit Bug report at: http://bugs.php.net/?id=8800&edit=1



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to