dba_exists

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

dba_existsCheck whether key exists

Опис

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

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

Параметри

key

The key the check is performed for.

dba

Примірник Dba\Connection, якого повертає функція dba_open() або dba_popen().

Значення, що повертаються

Returns true if the key exists, false otherwise.

Журнал змін

Версія Опис
8.4.0 Тепер параметр dba має бути примірником Dba\Connection. раніше очікувався дійсний dba resource.

Прогляньте також