note 12026 added to function.dbmnextkey.php

From: Date: Mon, 19 Mar 2001 15:08:58 +0000
Subject: note 12026 added to function.dbmnextkey.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-12545@lists.php.net to get a copy of this message
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" ... http://www.php.net/manual/en/function.dbmnextkey.php

« previous php.notes (#12545) next »