Get Started

Upgrade

Where Syntax

Query

Aggregation

Fetch

Transaction

Management

Advanced

Raw object

PDO object

Debug

Information

version: 2.1.12

count

Count the number of rows from the table.

count($table, $where)
count($table, $join, $column, $where)
Return: [int] The number of rows.
The type of returned data is number.
$count = $database->count("account", [
	"gender" => "female"
]);

echo "We have " . $count . " female users.";