Home > PHP > Function > dBase > dbase_numfields()

dbase_numfields()

dbase_numfields - Gets the number of fields of a database

Syntax

int dbase_numfields (int $dbase_identifier)

Arguments

  • dbase_identifier - The database link identifier, returned by dbase_open() or dbase_create().

Description

Gets the number of fields (columns) in the specified database.

Version

PHP 4, 5

Return value

The number of fields in the database, or FALSE if an error occurs.