PHP3 Manual | ||
---|---|---|
Prev | Next |
dbmnextkey -- retrieves the next key from a dbm database
Returns the next key after key. By calling dbmfirstkey() followed by successive calls to dbmnextkey() it is possible to visit every key/value pair in the dbm database. For example:
Example 1. Visiting every key/value pair in a dbm database. $key = dbmfirstkey($dbm_id); while ($key) { echo "$key = " . dbmfetch($dbm_id, $key) . "\n"; $key = dbmnextkey($dbm_id, $key); } |
Prev | Home | Next |
dbmfirstkey | Up | dblist |