Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : DBM Functions [deprecated] : dbmdelete

dbmdelete

Deletes the value for a key from a DBM database (PHP 4)
bool dbmdelete ( resource dbm_identifier, string key )


Code Examples / Notes » dbmdelete

v dot a dot rao

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


Change Language


Follow Navioo On Twitter
dblist
dbmclose
dbmdelete
dbmexists
dbmfetch
dbmfirstkey
dbminsert
dbmnextkey
dbmopen
dbmreplace
eXTReMe Tracker