note 16247 rejected from migration4.empty by zak
| From: | zak@php.net | Date: | Mon, 22 Oct 2001 16:48:41 +0000 |
| Subject: | note 16247 rejected from migration4.empty by zak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-19275@lists.php.net to get a copy of this message | ||
IMHO this is not a good idea. empty($s) should be reserved for *actually* empty strings. At least
the name at this point is completely wrong. I have nothing against if("0") evaluating
"0" to false, but empty() should be true only for empty string. Now the only way to test
for empty strings is strlen($s), and this is bad.