note 12026 deleted from function.dbmnextkey by danbrown

From: Date: Fri, 28 Nov 2008 22:41:01 +0000
Subject: note 12026 deleted from function.dbmnextkey by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-147371@lists.php.net to get a copy of this message
Note Submitter: fischer at schlund dot de ---- When you have a key "0" or so in your DB, then the example don't works, because "while ($key)" will return false for 0 ... I had good experiences with "while (strlen($key)>0)" as condition ... because when we have the last key false is returned and false evaluates to "nothing" ...

« previous php.notes (#147371) next »