psBDB_deleteKey() Delete a key entry
Description:
This will remove a key and value from a Berkeley DB file
Usage:
psBDB_deleteKey($dbFile,$key); $dbFile = file name of the db file $key = key name
Example:
psBDB_deleteKey("/tmp/people.db","mb0005");
Code:
// deletes a key from db function psBDB_deleteKey($dbFile,$key) { $db = dba_open($dbFile, "cl" ,"db4");
if ($db !== false) { dba_delete($key, $db); dba_close($db); }
}
Changlelog:
05-09-2019 v2.24 function added
|
|