max() / min() / abs()
Maximum / minimum / absolute value.
Syntax
max($a, $b, ...) · min(...) · abs($x)
Description
max gives the largest, min gives the smallest, abs gives the unsigned value. Also works with arrays.
Example
Loading editor…
Expected output
9 7
When to use?
Highest score, difference calculation.