Re: Custom function

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

 



On 16/02/2011, at 1:21 PM, Mark Kelly wrote:

> In this way almost any value in $z will trigger the conditional code, 
> including 0 or an empty string. The exceptions are FALSE and NULL. If you 
> explicitly need to react to a NULL value, use is_null() to detect it. 

http://nz.php.net/boolean#language.types.boolean.casting

As $z is converted to a boolean and exists, that works just the same way as !empty().
---
Simon Welsh
Admin of http://simon.geek.nz/

Who said Microsoft never created a bug-free program? The blue screen never, ever crashes!

http://www.thinkgeek.com/brain/gimme.cgi?wid=81d520e5e


-- 
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