TH ไทย
เวอร์ชัน: v2.3.0

count

นับแถวที่ตรงกันในตาราง

count($table, $where)
count($table, $join, $column, $where)
ค่าที่ส่งกลับ
[int] จำนวนแถวที่ตรงตามเงื่อนไข
วิธีการนี้จะคืนค่าจำนวนเต็มเสมอ
$count = $database->count("account", [
	"gender" => "female"
]);

echo "มีผู้ใช้หญิง {$count} คน";