dbCount($table, $cond =[]);
$table 表名。$cond 条件。
$table
$cond
function my_db_count(){ //由于没有指定条件,故返回所有通行证数量 $num = dbCount('user',[]); return $num; }