Home > PHP > Function > DBA > dba_exists()

dba_exists()

dba_exists - Check whether key exists

Syntax

bool dba_exists (string $key, resource $handle)

Arguments

  • key - The key the check is performed for.
  • handle - The database handler, returned by dba_open() or dba_popen().

Description

dba_exists() checks whether the specified key exists in the database.

Version

PHP 4, 5

Return value

Returns TRUE if the key exists, FALSE otherwise.