PHP min() Function Example

PHP min() Function Example


Posted in : PHP Posted on : January 31, 2011 at 6:04 PM Comments : [ 0 ]

The min() function is use to check the lowest number between two specified numbers.

PHP min() Function Example:

The min() function is use to check the lowest number between two specified numbers.

Syntax:

min(a, b)

where a and b is two numbers for process.

Example:

<?php
echo "The minimum number in between (2, 10) is : " . (min(2,10) . "<br />");
echo "The minimum number in between (-.3, -.4) is : " . (min(-.3,-.4));
?> 

Output:

The minimum number in between (2, 10) is : 2
The minimum number in between (-.3, -.4) is : -0.4

Download Example Code

Go to Topic «PreviousHomeNext»

Your Comment:


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

 
Tutorial Topics