note 47869 deleted from function.empty by betz
| From: | betz@php.net | Date: | Fri, 03 Dec 2004 14:59:27 +0000 |
| Subject: | note 47869 deleted from function.empty by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-81314@lists.php.net to get a copy of this message | ||
Note Submitter: rb
----
This is one of the annoying things in PHP. Since when is "0" an empty string??? It is a
string of legth 1, with the 0 character.
This bad convention is very annoying. If you have a drop down list with an item with value zero, and
that you filter out the empty submitted values, the value of the dropdown will be filtered out!
I guess the sae applies when you enter 0 in a text field.
Very bad behaviour in my opinion.
----
Reason: useless note