Re: isset() and !=NULL

From: Date: Fri, 26 Mar 2004 19:06:27 +0000
Subject: Re: isset() and !=NULL
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-181580@lists.php.net to get a copy of this message
On Fri, 26 Mar 2004 10:40:43 -0800, "Marcjon Louwersheimer" <marcjon@fastmail.fm> said: > Is there an easier way to do > isset($variable) AND $variable != NULL > ? I use this alot in my if statements, and I was wondering if there's an > easier way to do it, maybe with a single function? Oh and another > question... how does if ($variable) work? When does it evaluate true? Check out the is_null function. Itd seems to combine the two. http://www.php.net/manual/en/function.is-null.php and http://www.php.net/manual/en/language.types.null.php#language.types.null.syntax -- David G. Risner Software Engineer California State University, Los Angeles http://www.risner.org/david/

« previous php.general (#181580) next »