dba_delete

(PHP 4, PHP 5, PHP 7, PHP 8)

dba_deleteキーが指す DBA エントリを削除する

説明

dba_delete(string|array $key, resource $dba): bool

dba_delete() は、指定されたエントリを データベースから削除します。

パラメータ

key

削除するエントリのキー。

dba

dba_open() あるいは dba_popen() によって返されたデータベースハンドル。

戻り値

成功した場合に true を、失敗した場合に false を返します。

参考

add a note

User Contributed Notes 1 note

up
0
swain at panix dot com
22 years ago
Note that the memory is lost after doing this. If you had a key 'foo' with a value of 1000 bytes, that 1000 bytes is lost, and the DB file size will reflect this.
To Top