note 102592 added to language.operators.comparison

From: Date: Wed, 23 Feb 2011 12:45:59 +0000
Subject: note 102592 added to language.operators.comparison
Groups: php.notes 
Request: Send a blank email to php-notes+get-177245@lists.php.net to get a copy of this message
<?php $b = "10431441702500000443" == "10431441702500000043"; var_dump($b); ?> Could anyone tell me why $b is TRUE? The comparison is between 2 (different) strings, how is it possibile? If I use "===" operator the result is FALSE (correct). ---- Server IP: 69.147.83.197 Probable Submitter: 195.223.52.194 ---- Manual Page -- http://www.php.net/manual/en/language.operators.comparison.php Edit -- https://master.php.net/note/edit/102592 Del: integrated -- https://master.php.net/note/delete/102592/integrated Del: useless -- https://master.php.net/note/delete/102592/useless Del: bad code -- https://master.php.net/note/delete/102592/bad+code Del: spam -- https://master.php.net/note/delete/102592/spam Del: non-english -- https://master.php.net/note/delete/102592/non-english Del: in docs -- https://master.php.net/note/delete/102592/in+docs Del: other reasons-- https://master.php.net/note/delete/102592 Reject -- https://master.php.net/note/reject/102592 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#177245) next »