total_records — Get the total number of a given type of record in the database.

Db-related functions

Summary

total_records($recordType)

Get the total number of a given type of record in the database.

Parameters:
  • $recordType (string) – Type of record to count.
Returns:

int Number of records of $recordType in the database.

Usage

Examples

See Also