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