Re: Custom function

From: Date: Wed, 16 Feb 2011 00:49:47 +0000
Subject: Re: Custom function
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-311350@lists.php.net to get a copy of this message
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

« previous php.general (#311350) next »