AI写作智能体 自主规划任务,支持联网查询和网页读取,多模态高效创作各类分析报告、商业计划、营销方案、教学内容等。 广告
### count 获取数据表中的行数 count($table, $where) * ##### table [string] 表名. * ##### where (optional) [array] WHERE 条件. count($table, $join, $column, $where) * ##### table [string] 表名. * ##### join [array] 多表查询. * ##### column [string] 需要统计的字段. * ##### where (optional) [array] WHERE 条件. Return: [number] 行的数量. >返回的是数字类型. ~~~ $count = $database->count("account", [ "gender" => "female" ]); echo "We have " . $count . " female users."; ~~~