|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-10-02 10:22 UTC] md5 at pf dot pl
Description:
------------
na php5 otrzymuje dwa razy napis "ok"
$a = '1d1';
if($a == '1d1') print('ok');
if($a == '1e1') print('ok');
wyniak z tego ze:
'1d1' == '1e1'
i taki warunek:
if('1d1' == '1e1') print('ok');
takze pokazuje "ok"
Reproduce code:
---------------
if('1d1' == '1e1') print('ok');
else print('no');
Expected result:
----------------
powinno pojawic sie "no"
Actual result:
--------------
pojawia sie "ok"
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 06:00:02 2025 UTC |
:-) $a = '1d1'; if($a == '1d1') print('ok'); if($a == '1e1') print('ok'); php output: okok '1d1' == '1e1' !? next example: if('1d1' == '1e1') print('ok'); output: ok last example: if('1d1' == '1e1') print('ok'); else print('no'); output: ok I thing, should be: no