note 85342 deleted from function.empty by danbrown
| From: | danbrown@php.net | Date: | Thu, 12 Feb 2009 18:19:36 +0000 |
| Subject: | note 85342 deleted from function.empty by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-150585@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
to john_jian,
for the loose equal operator(==), if both operands are not of the same data type, one of the operand
will be converted to have the same data type as the other,
'' == 0 is true because '' is casted to integer 0,
0 == '0' is true because '0' is casted to integer 0,
'' == '0' is false because '' string is not equal to '0'
string