Bug #13111 Updated: compare two string via ==
| From: | hholzgra@php.net | Date: | Mon, 03 Sep 2001 16:36:15 +0000 |
| Subject: | Bug #13111 Updated: compare two string via == | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-64980@lists.php.net to get a copy of this message | ||
ID: 13111
Updated by: hholzgra
Reported By: olivier.sow@alias.fr
Old Status: Open
Status: Closed
Bug Type: Strings related
Operating System: WINDOWS 2000 SERVER
PHP Version: 4.0.5
New Comment:
try using the === operator to avoid type conversion
and you will see the solution
Previous Comments:
------------------------------------------------------------------------
[2001-09-03 12:20:13] olivier.sow@alias.fr
<?
if( '00d000000000000' == '00e000000000000' ) {
echo "For Mr PhP '00d000000000000' == '00e000000000000'
:)<BR>";
}
?>
try this script ! You will see the problem :)
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=13111&edit=1