ID: 8800
Updated by: zak
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: *General Issues
Assigned To:
Comments:
This is the expected behavior.
Use the === operator to check for explicit (type and value) equality.
Previous Comments:
---------------------------------------------------------------------------
[2001-01-19 05:57:02] [EMAIL PROTECTED]
$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 . '" ??';
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=8800
--
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]