note 60335 deleted from function.substr by mazzanet
| From: | mazzanet@php.net | Date: | Wed, 04 Jan 2006 07:37:43 +0000 |
| Subject: | note 60335 deleted from function.substr by mazzanet | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-101182@lists.php.net to get a copy of this message | ||
Note Submitter: Erik Allik
----
The following statement evaluates to true as opposed to what could be expected:
substr("0", 0) == FALSE.
This is due to the fact that "0" == 0 == FALSE.