SQL PHP HTML ASP JavaScript articles and free scripts to download
 

Maximum minimum number using max() min() function

We can get maximum value or highest number between two variables or two numbers by using max function. Here is the code.

echo max(5,25);






Same way we can get minimum number or lowest number between by using min function.

echo min(5,-15);





Discuss this tutorial at forum


PHP Math Functions
PHP Math Functions  |Addition Subtraction  |Maximum and Minimum numbers  |PHP Round  | Random number generator  | NUmber Formatting  | Ceil and floor value of a number  | Modulus or reminder

 

Subscribe
Submit your email address and receive article and product notifications. Your email is safe with us.

Scripts
PHP
JavaScript
PHP Tutorials
Math Functions
PHP Sections
PHP Introduction
Loops & structure
Array
Date & Time
Functions
Form Handling
File Handling
Math Functions
String Functions
GD Functions
Comment Posting
Content Management
PHP & Ajax
Popular Tutorials
Drop down list
File Upload
Signup script
Member Login
Line Graph
PHP MySQL Paging
PHP Calendar
Subscribe
Submit your email address and receive article and product notifications. Your email is safe with us.