max.php
Table of Contents
Functions
- max() : string
- Return the greatest element of an array.
Functions
max()
Return the greatest element of an array.
max(mixed $anyArray) : string
This helper wraps the ArangoDB AQL function MAX(anyArray) which returns
the maximum value from an array. The array is not limited to numbers and
can contain any comparable values.
Example AQL usage:
MAX([5, 2, 9, 2]) // returns 9
MAX(doc.scores) // returns highest score
MAX(["a", "b", "c"]) // returns "c"
Parameters
- $anyArray : mixed
-
Array expression to find maximum value from.
Tags
Return values
string —The formatted AQL expression.