note 16247 added to migration4.empty

From: Date: Mon, 22 Oct 2001 13:45:21 +0000
Subject: note 16247 added to migration4.empty
Groups: php.notes 
Request: Send a blank email to php-notes+get-19259@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. -- http://www.php.net/manual/en/migration4.empty.php http://master.php.net/manage/user-notes.php?action=edit+16247 http://master.php.net/manage/user-notes.php?action=delete+16247 http://master.php.net/manage/user-notes.php?action=reject+16247

« previous php.notes (#19259) next »