Complete PHP Math Reference
The min() function returns the number with the lowest value of two specified numbers.
| Parameter | Description |
|---|---|
| x | Required. A number |
| y | Required. A number |
In this example we will show how to use min() to return the number with the lowest value of two specified numbers:
The output of the code above will be:
Complete PHP Math Reference
Your message has been sent to W3Schools.