note 114181 deleted from types.comparisons by sobak
| From: | sobak@php.net | Date: | Thu, 01 Dec 2016 17:28:44 +0000 |
| Subject: | note 114181 deleted from types.comparisons by sobak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-207890@lists.php.net to get a copy of this message | ||
Note Submitter: lorenzo dot campagna at ymail dot com
----
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:
?>