Version: v2.6.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}";