Complete PHP Array Reference
The array_sum() function returns the sum of all the values in the array.
| Parameter | Description |
|---|---|
| array | Required. Specifies an array |
The output of the code above will be:
Complete PHP Array Reference
Your message has been sent to W3Schools.