ID:               16223
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Bogus
 Bug Type:         *Regular Expressions
 Operating System: SUN
 PHP Version:      4.1.2
 New Comment:

Logic 101

If the fruit is not blue or the fruit is not red, do something.

Since the fruit can only be one colour, that logic will always return
true.


Previous Comments:
------------------------------------------------------------------------

[2002-03-22 13:11:33] [EMAIL PROTECTED]

if ( ( $name != "test1" ) || ( $name != "test2" ) )

does not work properly.

if I Do each condition seperately, it works but If I join them using 
||   then this never works

however this works fine
if ( ( $name == "test1" ) || ( $name == "test2" ) )


it seems like the problem occurs only with "!=" condition


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=16223&edit=1

Reply via email to