ID: 44990 User updated by: design at apostolstudio dot com Reported By: design at apostolstudio dot com Status: Bogus Bug Type: Scripting Engine problem Operating System: Windows XP PHP Version: 5.2.6 New Comment:
Thanks for explanations. Previous Comments: ------------------------------------------------------------------------ [2008-05-14 02:39:53] [EMAIL PROTECTED] use === 'word' is converted to an integer for the comparison, and thus 0 == 0. try this code: if(array('word')===array(0)) echo "ERROR"; ------------------------------------------------------------------------ [2008-05-14 02:27:10] design at apostolstudio dot com Description: ------------ array('word')==array(0) -- return true Reproduce code: --------------- if(array('word')==array(0)) echo "ERROR"; Actual result: -------------- ERROR ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=44990&edit=1