final public static function hasLength ($value, array $options=[]) : bool
	{
		$valueLength = strlen($value);
		if (!self::hasValue($value)) new ErrorCode(1001);

		if (isset($options['max']) && ($valueLength > (int) $options['max']))
			return FALSE;

		if (isset($options['min']) && ($valueLength < (int) $options['min']))
			return FALSE;

		if (isset($options['exact']) && ($valueLength != (int) $options['exact']))
			return FALSE;

		return TRUE;
	}
final public static function hasLength ($value, array $options=[]) : bool
	{
		$valueLength = strlen($value);
		if (!self::hasValue($value)) new ErrorCode(1001);

		if (isset($options['max']) && ($valueLength > (int) $options['max']))
			return FALSE;

		if (isset($options['min']) && ($valueLength < (int) $options['min']))
			return FALSE;

		if (isset($options['exact']) && ($valueLength != (int) $options['exact']))
			return FALSE;

		return TRUE;
	}
final public static function hasLength ( $ value , array $ options = [ ] ) : bool { $ valueLength = strlen ( $ value ) ; if ( ! self :: hasValue ( $ value ) ) new ErrorCode ( 1001 ) ; if ( isset ( $ options [ 'max' ] ) && ( $ valueLength > ( int ) $ options [ 'max' ] ) ) return FALSE ; if ( isset ( $ options [ 'min' ] ) && ( $ valueLength < ( int ) $ options [ 'min' ] ) ) return FALSE ; if ( isset ( $ options [ 'exact' ] ) && ( $ valueLength != ( int ) $ options [ 'exact' ] ) ) return FALSE ; return TRUE ; }
Checks for the maximum, minimum or exact length of a value.
@param mixed $value
@param array $options
@return bool
Checks for the maximum minimum or exact length of a value .