public static function total($array = false, $decimals = 2) {

        if($array && Validate::isArray($array)) {

            return self::round(array_sum($array), $decimals);
        }

        return false;
    }
public static function total($array = false, $decimals = 2) {

        if($array && Validate::isArray($array)) {

            return self::round(array_sum($array), $decimals);
        }

        return false;
    }
public static function total ( $ array = false , $ decimals = 2 ) { if ( $ array && Validate :: isArray ( $ array ) ) { return self :: round ( array_sum ( $ array ) , $ decimals ) ; } return false ; }
Get the sum total of a given array's values.
@param array with values
@return int || float
Get the sum total of a given array s values .