note 105495 added to language.operators.comparison

From: Date: Mon, 22 Aug 2011 20:59:23 +0000
Subject: note 105495 added to language.operators.comparison
Groups: php.notes 
Request: Send a blank email to php-notes+get-182660@lists.php.net to get a copy of this message
I think it's wrong behavior! Because if you compare: 0 == 'A' it returns true. But is wrong because if it converts to int, it should converts to 65 (ascii A) not 0! This is against the logic. I understand that it's "expected" from language, but it's obviously wrong. ---- Server IP: 69.147.83.197 Probable Submitter: 186.206.64.251 ---- Manual Page -- http://www.php.net/manual/en/language.operators.comparison.php Edit -- https://master.php.net/note/edit/105495 Del: integrated -- https://master.php.net/note/delete/105495/integrated Del: useless -- https://master.php.net/note/delete/105495/useless Del: bad code -- https://master.php.net/note/delete/105495/bad+code Del: spam -- https://master.php.net/note/delete/105495/spam Del: non-english -- https://master.php.net/note/delete/105495/non-english Del: in docs -- https://master.php.net/note/delete/105495/in+docs Del: other reasons-- https://master.php.net/note/delete/105495 Reject -- https://master.php.net/note/reject/105495 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#182660) next »