Isset question

From: Date: Wed, 08 Dec 2004 07:39:30 +0000
Subject: Isset question
Groups: php.internals 
Request: Send a blank email to internals+get-14020@lists.php.net to get a copy of this message
Hello internals, If anyone has a moment to answer this, it'd be appreciated... -- isset($x); => false is_null($x) => Notice: undefined variable $x -- $x = null; isset($x); => false is_null($x) => true The question is *why* does isset() report false on a variable that is set to NULL? Is there any way to tell if a variable isset and is_null without generating an error? It doesn't seem that this behavior is consistent with the meaning of isset(), or the errors that are generated when a variable is not set. Thanks. -- Best regards, Jason Garber mailto:jason@ionzoft.com IonZoft, Inc.

« previous php.internals (#14020) next »