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
[ 0 ] Comments