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:

integer Number of records of $recordType in the database.

Usage

Examples

See Also