Answers for "function to find minimum value in php"

PHP
0

set a minimum character value in php

if (strlen($input) < 12)
{
   echo "Input is too short, minimum is 12 characters (20 max).";
}
elseif(strlen($input) > 20)
{
   echo "Input is too long, maximum is 20 characters.";
}
Posted by: Guest on December-07-2019
0

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
?>
Posted by: Guest on July-03-2021

Code answers related to "function to find minimum value in php"

Browse Popular Code Answers by Language