Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: dbmdelete - Manual
[go: Go Back, main page]

PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

dbmexists" width="11" height="7"/> <dbmclose
Last updated: Thu, 31 May 2007

view this page in

dbmdelete

(PHP 4)

dbmdelete — DBM データベースから値を削除する

説明

bool dbmdelete ( resource $dbm_identifier, string $key )

データベース中の、key に対応する値を削除します。

パラメータ

dbm_identifier

dbmopen() が返す DBM リンク識別子。

key

キーを表す文字列。

返り値

成功した場合に TRUE を、失敗した場合に FALSE を返します。 データベース中にキーが存在しない場合は FALSE を返します。

参考

dbminsert()



add a note add a note User Contributed Notes
dbmdelete
v dot a dot rao at online dot nl
10-Sep-2000 05:53
Doesn't return false if the key is not in the database (contrary to what the documentation states).

Returns -1 (TRUE) if the key doesn't exist
Returns 0 (FALSE) if the key does exist

This is still a bug (3.0.16 and 4.0.2) and it can still cost you your Saturday afternoon if you comply with the PHP documentation on TRUE (non-zero) and FALSE (0) with regards to this function.

http://www.php.net/manual/language.expressions.php

dbmexists" width="11" height="7"/> <dbmclose
Last updated: Thu, 31 May 2007
 
 
show source | credits | sitemap | contact | advertising | mirror sites