バージョン: v2.6.0
sum
指定したカラムの合計値を計算します。
sum($table, $column, $where)
sum($table, $join, $column, $where)
戻り値
[mixed] 指定したカラムの合計値。
$total = $database->sum("account", "money");
echo "合計金額: {$total}";