php8.5
Home/ Manual/ dba / functions/ dba_exists

dba_exists

PHP function Edit on GitHub ✎

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

Check whether key exists

Description

dba_exists(string|array $key, Dba\Connection $dba): bool

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

Parameters

key

The key the check is performed for.

dba

Dba

Return Values

Returns true if the key exists, false otherwise.

Changelog

VersionDescription

See Also

Source: reference/dba/functions/dba-exists.xml · from the official PHP manual (php/doc-en)