src/Functions/ExtendedOperations/ValidityFunctions.php
public function isValidStringLength($str, $min = null, $max = null): bool
    {
        $len = mb_strlen($str, 'UTF-8');

        return (($min !== null) && ($len >= $min)) || (($max !== null) && ($len <= $max));
    }
public function isValidStringLength($str, $min = null, $max = null): bool
    {
        $len = mb_strlen($str, 'UTF-8');

        return (($min !== null) && ($len >= $min)) || (($max !== null) && ($len <= $max));
    }
public function isValidStringLength ( $ str , $ min = null , $ max = null ) : bool { $ len = mb_strlen ( $ str , 'UTF-8' ) ; return ( ( $ min !== null ) && ( $ len >= $ min ) ) || ( ( $ max !== null ) && ( $ len <= $ max ) ) ; }
Checking string length, max and minimum.

@param string $str The string to check
@param int    $min The minimum string size
@param int    $max The maximum string size

@return bool

@api
Checking string length max and minimum .