system/Validation/Rules.php
public function max_length(string $str = null, string $val, array $data): bool
	{
		return ($val >= mb_strlen($str));
	}
public function max_length(string $str = null, string $val, array $data): bool
	{
		return ($val >= mb_strlen($str));
	}
Returns true if $str is $val or fewer characters in length.

@param string $str
@param string $val
@param array  $data

@return boolean