简体中文
版本: v2.3.0

count

统计数据表中匹配的记录数。

count($table, $where)
count($table, $join, $column, $where)
返回值
[int] 返回匹配的记录数。
此方法始终返回整数。
$count = $database->count("account", [
	"gender" => "female"
]);

echo "共有 {$count} 位女性用户。";