Re: alternative to empty

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2005-07-06 at 10:55 +0100, Ross wrote:
> I have been using empty in forms for some time now. but have just discovered 
> that
> 
>       PHP 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. 
> 

If a string is empty, it should be == ''

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux