Core/Validate.php
public static function isLength($string = false, $minLength = 0, $maxLength = false) {

        if ($string && strlen($string) >= $minLength) {

            if (!$maxLength || strlen($string) <= $maxLength) {

                return true;
            }
        }

        return false;
    }
public static function isLength($string = false, $minLength = 0, $maxLength = false) {

        if ($string && strlen($string) >= $minLength) {

            if (!$maxLength || strlen($string) <= $maxLength) {

                return true;
            }
        }

        return false;
    }
public static function isLength ( $ string = false , $ minLength = 0 , $ maxLength = false ) { if ( $ string && strlen ( $ string ) >= $ minLength ) { if ( ! $ maxLength || strlen ( $ string ) <= $ maxLength ) { return true ; } } return false ; }
Check the length of a string.
@param string input
@param int min value
@param int max value
@example isLength('hello world', 2) - returns true, 9 is longer then 2
@example isLength('hello world', 2, 5) - returns false, 9 is longer then 5
@return boolean
Check the length of a string .