バージョン: v2.6.0
min
指定したカラムの最小値を返します。
min($table, $column, $where)
min($table, $join, $column, $where)
戻り値
[mixed] 指定したカラムの最小値。
$min = $database->min("account", "age", [
"gender" => "male"
]);
echo "最年少の男性ユーザーの年齢: {$min}";