note 16735 added to function.dba-nextkey

From: Date: Sat, 10 Nov 2001 22:56:39 +0000
Subject: note 16735 added to function.dba-nextkey
Groups: php.notes 
Request: Send a blank email to php-notes+get-20670@lists.php.net to get a copy of this message
It seems that if a key is the empty string, the function returns FALSE. This can get confusing if you're using: for ($key = dba_firstkey($db1); $key != FALSE; $key = dba_nextkey($db1)) { } It will seem that there are no entries in your database. -- http://www.php.net/manual/en/function.dba-nextkey.php http://master.php.net/manage/user-notes.php?action=edit+16735 http://master.php.net/manage/user-notes.php?action=delete+16735 http://master.php.net/manage/user-notes.php?action=reject+16735

« previous php.notes (#20670) next »