繁體中文
版本: v2.3.0

count

統計資料表中符合條件的記錄數。

count($table, $where)
count($table, $join, $column, $where)
回傳值
[int] 回傳符合條件的記錄數。
此方法一律回傳整數。
$count = $database->count("account", [
	"gender" => "female"
]);

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