Re: alternative to empty
| From: | JamesBenson | Date: | Wed, 06 Jul 2005 12:18:48 +0000 |
| Subject: | Re: alternative to empty | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-218195@lists.php.net to get a copy of this message | ||
Use the trim function,
http://php.net/manual/en/function.trim.php
Ross wrote:
I have been using empty in forms for some time now. but have just discovered thatPHP 4 As of PHP 4, The string value "0" is considered empty.Is there an alternative that will just check for empty strings. I suppose I could just use eregi and check for numbers but thought there may be a function that would work in a similar way. R.