|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-11-04 22:58 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 05 01:00:02 2025 UTC |
Description: ------------ Two if-clauses are not outputting the same result as they should. Reproduce code: --------------- <?php $a = "abc"; $b = "abcd"; /* Example 1: */ if ($a != $b) { echo "This one doesn't."; } /* Example 2: */ if (! $a == $b) { echo "This works fine."; } ?> Expected result: ---------------- Both example 1 and 2 outputs the written strings. Actual result: -------------- Only example 1 outputs the expected result.