note 45990 added to function.array-keys

From: Date: Sat, 25 Sep 2004 17:52:57 +0000
Subject: note 45990 added to function.array-keys
Groups: php.notes 
Request: Send a blank email to php-notes+get-77313@lists.php.net to get a copy of this message
note to sip at email dot ee inefficent it may be, but it detects if array keys have been defined with null values. with the array $Row['field1'] = null; $Row['field2'] = 'hello'; array_key_exists('field1',$Row) will return true isset($Row['field1']) will return false, even though the key is present... ---- Manual Page -- http://www.php.net/manual/en/function.array-keys.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+45990 Delete -- http://master.php.net/manage/user-notes.php?action=delete+45990&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+45990&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#77313) next »