note 94086 deleted from language.operators.comparison by danbrown
| From: | danbrown@php.net | Date: | Thu, 15 Oct 2009 16:41:39 +0000 |
| Subject: | note 94086 deleted from language.operators.comparison by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-161779@lists.php.net to get a copy of this message | ||
Note Submitter: slydog at portnorfolk dot net
----
Comparing to 0:
<?php
$str1 = '$220.00 / 1.00 lot';
$str2 = '220.00 / 1.00 lot';
echo ($str1 == 0) ? "'$str1' == 0\n" : "'$str1' != 0\n";
// '$220.00 / 1.00 lot' == 0
echo ($str2 == 0) ? "'$str2' == 0\n" : "'$str2' != 0\n";
// '220.00 / 1.00 lot' != 0
?>
Why the difference?