php8.5
Home/ Manual/ dbase / functions/ dbase_get_record

dbase_get_record

PHP function Edit on GitHub ✎

(PHP 5 < 5.3.0, dbase 5, dbase 7)

Gets a record from a database as an indexed array

Description

dbase_get_record(resource $database, int $number): array

Gets a record from a database as an indexed array.

Parameters

database

The database resource, returned by dbase_open() or dbase_create().

number

The index of the record between 1 and dbase_numrecords($dbase_identifier).

Return Values

An indexed array with the record. This array will also include an associative key named deleted which is set to 1 if the record has been marked for deletion (see dbase_delete_record()).

Type-conversion

On error, dbase_get_record() will return false.

Changelog

VersionDescription
PECL dbase 7.0.0database is now a resource instead of an int.

See Also

Source: reference/dbase/functions/dbase-get-record.xml · from the official PHP manual (php/doc-en)