HS Banner
Back
PHP min() and max() Functions

Author: Admin 09/05/2021
Language: PHP
Tags:


Description:

The min() and max() functions can be used to find the lowest or highest value in a list of arguments:

Article:

<!DOCTYPE html>
<html>
<body>

<?php
echo(min(0, 150, 30, 20, -8, -200) . "<br>");
echo(max(0, 150, 30, 20, -8, -200));
?>

</body>
</html>

Read More: https://www.w3schools.com/php/php_math.asp 



Back
Comments
Add Comment
There are no comments yet.