public static function lengthBetween($check, $min, $max)
    {
        if (!is_string($check)) {
            return false;
        }
        $length = mb_strlen($check);

        return ($length >= $min && $length <= $max);
    }
public static function lengthBetween($check, $min, $max)
    {
        if (!is_string($check)) {
            return false;
        }
        $length = mb_strlen($check);

        return ($length >= $min && $length <= $max);
    }
public static function lengthBetween ( $ check , $ min , $ max ) { if ( ! is_string ( $ check ) ) { return false ; } $ length = mb_strlen ( $ check ) ; return ( $ length >= $ min && $ length <= $ max ) ; }
Checks that a string length is within specified range.
Spaces are included in the character count.
Returns true if string matches value min, max, or between min and max,

@param string $check Value to check for length
@param int $min Minimum value in range (inclusive)
@param int $max Maximum value in range (inclusive)
@return bool Success
Checks that a string length is within specified range . Spaces are included in the character count . Returns true if string matches value min max or between min and max