YouTip LogoYouTip

Func Math Min

# PHP min() Function [![Image 3: PHP Math Reference Manual](#) PHP Math Reference Manual](#) ## Example Find the minimum value using the min() function: <?php echo(min(2,4,6,8,10) . "
"); echo(min(22,14,68,18,15) . "
"); echo(min(array(4,6,8,10)) . "
"); echo(min(array(44,16,81,12))); ?> [Run Example Β»](#) * * * ## Definition and Usage The min() function returns the minimum value in an array, or the minimum value among several specified values. * * * ## Syntax min(_array_values_); or min(_value1,value2,..._); | 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 minimum numerical value. | | :--- | | Return Type: | Mixed | | PHP Version: | 4+ | * * PHP Math Reference Manual](#)
← Func Misc DieFunc Math Max β†’