[Top]
Gdbm
Gdbm.gdbm
|
Method Gdbm.gdbm()->`[]=()
- Method
`[]=
-
string `[]=(string key, string data)
- Description
-
Associate the contents of 'data' with the key 'key'. If the key 'key'
already exists in the database the data for that key will be replaced.
If it does not exist it will be added. An error will be generated if
the database was not open for writing.
- Example
-
gdbm[key] = data;
- Returns
-
Returns data on success.
- See also
-
store()
|