← All built-ins / min()

min()

min(...$numbers): mixed

Parameters

NameTypeDescription
$...mixednumbers or a single array

Return value

The smallest value.

Example

echo min(3, 7, 5), "
";
echo min([2, 9, -4]), "
";
3
-4

See also

max()