Javatpoint Logo
Javatpoint Logo

Min() function

PHP min() function is used to find the lowest value.

Syntax:

Parameter Description Type
array_values Specified array Array
value1,value2,value3...); Specifies the two or more value (at least two numbers). Mixed

Example1

Output:

Your number is =max(4,14,3,5,14.2)
By using min function Your number is : 3

Example2

Output:

Your number is =min(4,-14,3,5,14.2)
By using min() function Your number is : -14

Example3

Output:

Your number is =min(14,-18,4,8,15.5)
By using min() function Your number is : -18

Example4

Output:

Your number is =min(1=>15,3=>25,4=>13,5=>10)
By using min() function Your number is : 10

Next TopicPHP Math





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA