Extracted from Pike v7.8 release 866 at 2016-11-06.
pike.ida.liu.se
[Top]
Gdbm
Gdbm.gdbm

Method Gdbm.gdbm()->nextkey()


Method nextkey

string nextkey(string key)

Description

This returns the key in database that follows the key 'key' key. This is of course used to iterate over all keys in the database.

Example

// Write the contents of the database for(key=gdbm->firstkey(); k; k=gdbm->nextkey(k)) write(k+":"+gdbm->fetch(k)+"\n");