Back
PHP min() and max() Functions

Author: Admin 09/05/2021
Language: PHP


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>

PHP Math (w3schools.com)


Back
Comments
Add Comment
There are no comments yet.