original_string: public static function exactLength($value, int $length, string $encoding = 'UTF-8'): bool
      {
          if (!static::isStringCastable($value)) {
              return false;
          }
  
          $strlen = (int) mb_strlen((string) $value, $encoding);
  
          return $strlen === $length;
      }
code: public static function exactLength($value, int $length, string $encoding = 'UTF-8'): bool
      {
          if (!static::isStringCastable($value)) {
              return false;
          }
  
          $strlen = (int) mb_strlen((string) $value, $encoding);
  
          return $strlen === $length;
      }
code_tokens: public static function exactLength ( $ value , int $ length , string $ encoding = 'UTF-8' ) : bool { if ( ! static :: isStringCastable ( $ value ) ) { return false ; } $ strlen = ( int ) mb_strlen ( ( string ) $ value , $ encoding ) ; return $ strlen === $ length ; }
docstring: Checks if value has an exact string length
  
  @param mixed  $value    The value
  @param int    $length   The string length
  @param string $encoding The string encoding
  
  @return bool
docstring_tokens: Checks if value has an exact string length