Skip to content

Math Functions

Before you begin

In order to use the features in this section you need to have an active Spojit account. If you don't have an account you can checkout out the pricing and register here. If you already have an account you can login here.


Sum

sum(array $value):mixed
Sums all value in given array and returns a number.
  sum([1, 2, 3]) => 6
  sum([1.2, 2.2]) => 3.4
  sum([]) => 0