note 108502 added to language.operators.comparison

From: Date: Wed, 02 May 2012 07:47:14 +0000
Subject: note 108502 added to language.operators.comparison
Groups: php.notes 
Request: Send a blank email to php-notes+get-187425@lists.php.net to get a copy of this message
why does php (5.3.11) return false for <?php var_dump("string"!=="strig"); ?> or <?php var_dump("string"!="string"); ?> ,any idea? is-it because it is an allias for strcmp($string, $string) that returns 0? ---- Server IP: 69.147.83.197 Probable Submitter: 89.2.150.133 ---- Manual Page -- http://www.php.net/manual/en/language.operators.comparison.php Edit -- https://master.php.net/note/edit/108502 Del: integrated -- https://master.php.net/note/delete/108502/integrated Del: useless -- https://master.php.net/note/delete/108502/useless Del: bad code -- https://master.php.net/note/delete/108502/bad+code Del: spam -- https://master.php.net/note/delete/108502/spam Del: non-english -- https://master.php.net/note/delete/108502/non-english Del: in docs -- https://master.php.net/note/delete/108502/in+docs Del: other reasons-- https://master.php.net/note/delete/108502 Reject -- https://master.php.net/note/reject/108502 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#187425) next »