# ArrayMax()

Returns the largest numeric value in an array. If the array
parameter value is an empty array, returns zero.
All elements must contain values that can be automatically
converted to numeric values.

```
ArrayMax( array=array );
```

**Returns:** number

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| array | array | Yes | Name of an array |  |

# Examples

### Get the max value in the array

```1
aNames = array(10412,42,33,2,999,12769,888);

dump(arrayMax(aNames));

//member function
dump(aNames.max());
```







# Categories

[Arrays](../../categories/array.md)

# See Also

[array.max()](../objects/array/max.md)