EN English
Version: v2.4.0

sum

Calculate the sum of values in a column.

sum($table, $column, $where)
sum($table, $join, $column, $where)
Return Value
[mixed] The sum of the values in the specified column.
$total = $database->sum("account", "money");

echo "Total amount: {$total}";