count

Returns the total count of record.

Usage:

$db->{table}->count($where);
// Total Records
$total = $db->news->count();
// 100

// Working with conditions
$total = $db->news->count(
    array('name' => 'My Name')
);
// 5

Looking for the other parameters?

Parameters

Last updated