#37750 [Opn->Bgs]: If else statement got bugs
| From: | tony2001@php.net | Date: | Thu, 08 Jun 2006 18:15:15 +0000 |
| Subject: | #37750 [Opn->Bgs]: If else statement got bugs | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-98201@lists.php.net to get a copy of this message | ||
ID: 37750
Updated by: tony2001@php.net
Reported By: xenophobia_1987 at yahoo dot com
-Status: Open
+Status: Bogus
Bug Type: Unknown/Other Function
Operating System: Debian GNU/Linux
PHP Version: 4.4.2
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Use ===.
Previous Comments:
------------------------------------------------------------------------
[2006-06-08 18:07:05] xenophobia_1987 at yahoo dot com
Description:
------------
Problem occured while I'am using the if-else statment...
Is hard to explain... lets look at the code...
Reproduce code:
---------------
//declaring variable
$var1 = "words";
if($var1 == 0){
echo "Is a zero";
}else if($var1 == "words"){
echo "Is a string";
}
Expected result:
----------------
Is a string
Actual result:
--------------
Is a zero
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37750&edit=1