Skip to content

max

NAME

max() - searches for the maximum value inside an array

SYNOPSIS

mixed max(mixed * arr) mixed max(mixed * arr, int flag);

DESCRIPTION

Searches  maximum value for (int|float|string) arrays.  If flag is 0 or
omitted the maximum value will be returned, otherwise the  first  index
of its occurrence.

SEE ALSO

min(3)