On Fri, 26 Mar 2004 10:40:43 -0800, "Marcjon Louwersheimer" <[EMAIL PROTECTED]> 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/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php