note 46729 deleted from function.isset by sean

From: Date: Thu, 21 Oct 2004 15:33:49 +0000
Subject: note 46729 deleted from function.isset by sean
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-78891@lists.php.net to get a copy of this message
Note Submitter: joerg dot ludwig at hvf-bs dot net ---- Warning, isset() returns false for variables or array elements set to NULL! $arr[key] = 0; echo isset($arr[key]); // true $arr[key] = ""; echo isset($arr[key]); // true $arr[key] = NULL; echo count($arr); // 1 $arr[key] = NULL; echo serialize($arr); // a:1:{s:3:"key";N;} $arr[key] = NULL; echo isset($arr[key]); // false !! (Tested with PHP 4.3.2) ---- Reason: useless note

« previous php.notes (#78891) next »