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 :: laravel set appends 
Php :: the requested php extension bcmath is missing from your system 
Php :: New Laravel Devcontainer Project Setup 
Php :: php count vs sizeof 
Php :: php code for video upload 
Php :: call php function in js 
Php :: brew reinstall php 7.4 
Php :: php remove control characters from string 
Php :: bindparam php 
Php :: laravel migration string length 
Php :: get current authenticated user laravel 
Php :: hoew to store a cookie php 
Php :: laravel Class "PDO" not found 
Php :: grouping route in laravel 
Php :: display image in php from folder 
Php :: Error: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress. 
Php :: laravel model events 
Php :: add bootstrap class to checkout fields woocommerce 
Php :: laravel blade routeIs 
Php :: return two variables php 
Php :: foreach date php 
Php :: php filter array 
Php :: laravel make model along with its controller and migration file 
Php :: count_chars (PHP 4, PHP 5, PHP 7, PHP 8) count_chars — Return information about characters used in a string 
Php :: wordpress image size name 
Php :: laravel model with migration 
Php :: php include 
Php :: laravel mail send to multiple recipients 
Php :: time zone for php is not set (configuration parameter "date.timezone"). 
Php :: wordpress admin redirecting to http 
ADD CONTENT
Topic
Content
Source link
Name
7+3 =