ID: 22994
Updated by: [EMAIL PROTECTED]
Reported By: hermandepauw at hotmail dot com
-Status: Open
+Status: Bogus
Bug Type: Unknown/Other Function
Operating System: Red Hat Linux
PHP Version: 4.3.0
New Comment:
Use === if you want to check both type and value. The numerical value
of "NAME" is indeed 0, so if $something is 0 the condition will be
true.
Previous Comments:
------------------------------------------------------------------------
[2003-03-31 16:45:16] hermandepauw at hotmail dot com
if ( $something == "NAME") { print $something } prints "0"
the main problem is in the summary ... example code and source on
http://www.deparadox.be/php/ i don't know the explain it in words so
get a view ... code is only ~10 lines
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22994&edit=1