Easy Tutorial
❮ Func Filter Input Array Func Math Max ❯

PHP min() Function

PHP Math Reference Manual

Example

Finding the minimum value using the min() function:


Definition and Usage

The min() function returns the minimum value in an array, or the smallest value among specified values.


Syntax

Parameter Description
array_values Required. Specifies an array containing values.
value1, value2, ... Required. Specifies the values to compare (at least two values).

Technical Details

Return Value: The smallest numeric value.
Return Type: Mixed
--- ---
PHP Version: 4+
--- ---
❮ Func Filter Input Array Func Math Max ❯