Minimum number using min() function

MIN(value1,value2,value3 .....) 
We can get manimum value or lowest number between two variables or two numbers by using man() function. .
<?Php
echo min(-5.8,5,44,-56); //Output is -56
?> 

MIN function with String

Strings are treated as 0 while comparing.
When two equal values are there the order decides which is minimum or lowest.
<?Php
min('plus2net',-1);  // Output is -1
min('plus2net',0); // Output is  plus2net
min('plus2net',1); // Outptu is  plus2net
?>

MIN function with Array

<?Php 
echo min(array(-6,8,-22,3,15,-5)); //Output is -22
?>

Read More on max value of Array

Visitors Rating
Your Rating





Post your comments , suggestion , error , requirements etc here .




HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2019 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer