Php min
From w3cyberlearnings
Contents |
PHP function min
This function returns the smallest number of the two input numbers.
Syntax min
- number1: first number.
- number2: second number.
min(number1, number2);
Example 1
<?php $large1 = min(7,30); echo $large1; echo "<br/>"; $large2 = min(-3,-50); echo $large2; echo "<br/>"; ?>
Output
7 -50