How to use min in PHP

This article describe about min() Function in PHP.
  • 1290

min() Function

This function return the lowest number between specified two value.

Syntax

min( x, y)

 

Parameter Description
x Specified a number.
y Specified a number.

Example

<html>
<?php
echo(min(9,7) . "<br />");
echo(min(-6,5) . "<br />");
echo(min(-3,-5) . "<br />");
echo(min(9.5,7.300))
?>
</html>

 

Output


minphp.jpg

You may also want to read these related articles Click here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.