---
layout: doc
title: contrib / min
---
# min

### NAME

    min() - searches for the minimum value inside an array

### SYNOPSIS

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

### DESCRIPTION

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

### SEE ALSO

    max(3)

