A::average()
Returns the average value of an array
Parameters
Name | Type | Default | Description |
---|---|---|---|
$array * | array |
– | The source array |
$decimals | int |
0 |
The number of decimals to return |
Return type
float
|null