note 62702 deleted from language.types.null by danbrown

From: Date: Tue, 19 May 2009 14:20:09 +0000
Subject: note 62702 deleted from language.types.null by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-155736@lists.php.net to get a copy of this message
Note Submitter: owk dot ch199_ph at gadz dot org ---- To zola at zolaweb dot com : "It treats NULL as the constant and unsets the variable." It doesn't. As you are trying to find if your variable is empty, your code should be : if (empty ($array['var'])) { $array['var'] = "NULL"; } You know, when "!isset ($var)" is true, $var is already not set... PS : when "$var = '';", $var is set AND is equal to '', the empty string.

« previous php.notes (#155736) next »