Search
 
SCRIPT & CODE EXAMPLE
 

PHP

PHP min() and max()

<?php
echo (min(-1341,14415,15115) . "<br>");
echo (max(array(134,14,1441,13)));
#Max outputs 1441, while Min outputs -1341
?>
Comment

min function in php

<?php
echo(min(2,4,6,8,10) . "<br>"); # output: 2
echo(min(22,14,68,18,15) . "<br>"); # output: 14
echo(min(array(4,6,8,10)) . "<br>"); # output: 4
echo(min(array(44,16,81,12))); # output: 12
?>
Comment

PREVIOUS NEXT
Code Example
Php :: adding data dynamically to empty array in php 
Php :: laravel create model 
Php :: basename in php 
Php :: explode example in php 
Php :: create migration with model laravel 
Php :: php get first character of each word 
Php :: laravel check if email is verified 
Php :: php print datetime 
Php :: laravel realation with has 
Php :: phpmyadmin centos 8 
Php :: php array pop by value 
Php :: show images laravel 8 showJobImage($filename) 
Php :: config file php 
Php :: pdf to image php 
Php :: max title limit woocommerce product 
Php :: reset id auto increment after deleting a table row in phpmyadmin 
Php :: clear cache symfony 
Php :: php lowercase assoc array 
Php :: php invoke 
Php :: laravel signed Route custom domain 
Php :: php if short form 
Php :: how to call php function from ajax 
Php :: checkbox options wordpress 
Php :: how to set up the laravel ssh keygen 
Php :: laravel trans with parameters 
Php :: update woocommerce cart 
Php :: php string random 
Php :: showing custom post type in wordpress website 
Php :: Difference in seconds between datetime 
Php :: $_get and $_post in php 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =