codecamp

PHP8 dba_exists

(PHP 4、PHP 5、PHP 7、PHP 8)

dba_exists — 检查密钥是否存在

说明

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

dba_exists() 检查数据库中是否存在指定的项。key

参数 

key

对其执行检查的密钥。

dba

数据库处理程序,由 dba_open() 或 dba_popen() 返回。

返回值 

如果键存在,则返回 true,否则返回 false。

参见 

  • dba_delete() - 删除 key 指定的 DBA 条目
  • dba_fetch() - 获取键指定的数据
  • dba_insert() - 插入条目
  • dba_replace() - 替换或插入条目


PHP8 dba_delete
PHP8 dba_fetch
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定