note 114181 added to types.comparisons

From: Date: Tue, 21 Jan 2014 21:33:11 +0000
Subject: note 114181 added to types.comparisons
Groups: php.notes 
Request: Send a blank email to php-notes+get-198294@lists.php.net to get a copy of this message
Someone can explain why this comparison result TRUE when it should be FALSE? <?php $a = "3abcdef"; $b = 3; if($a == $b) {print("Match!");} //Because of this comparison TRUE script will output: ?> ---- Server IP: 72.52.91.14 Probable Submitter: 72.52.91.14 ---- Manual Page -- http://php.net/manual/en/types.comparisons.php Edit -- https://master.php.net/note/edit/114181 Del: integrated -- https://master.php.net/note/delete/114181/integrated Del: useless -- https://master.php.net/note/delete/114181/useless Del: bad code -- https://master.php.net/note/delete/114181/bad+code Del: spam -- https://master.php.net/note/delete/114181/spam Del: non-english -- https://master.php.net/note/delete/114181/non-english Del: in docs -- https://master.php.net/note/delete/114181/in+docs Del: other reasons-- https://master.php.net/note/delete/114181 Reject -- https://master.php.net/note/reject/114181 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#198294) next »