original_string: public static function isAlpha($string, $charset)
      {
          if (!Horde_Util::extensionExists('mbstring')) {
              return ctype_alpha($string);
          }
  
          $charset = self::_mbstringCharset($charset);
          $old_charset = mb_regex_encoding();
  
          if ($charset != $old_charset) {
              @mb_regex_encoding($charset);
          }
          $alpha = !@mb_ereg_match('[^[:alpha:]]', $string);
          if ($charset != $old_charset) {
              @mb_regex_encoding($old_charset);
          }
  
          return $alpha;
      }
code: public static function isAlpha($string, $charset)
      {
          if (!Horde_Util::extensionExists('mbstring')) {
              return ctype_alpha($string);
          }
  
          $charset = self::_mbstringCharset($charset);
          $old_charset = mb_regex_encoding();
  
          if ($charset != $old_charset) {
              @mb_regex_encoding($charset);
          }
          $alpha = !@mb_ereg_match('[^[:alpha:]]', $string);
          if ($charset != $old_charset) {
              @mb_regex_encoding($old_charset);
          }
  
          return $alpha;
      }
code_tokens: public static function isAlpha ( $ string , $ charset ) { if ( ! Horde_Util :: extensionExists ( 'mbstring' ) ) { return ctype_alpha ( $ string ) ; } $ charset = self :: _mbstringCharset ( $ charset ) ; $ old_charset = mb_regex_encoding ( ) ; if ( $ charset != $ old_charset ) { @ mb_regex_encoding ( $ charset ) ; } $ alpha = ! @ mb_ereg_match ( '[^[:alpha:]]' , $ string ) ; if ( $ charset != $ old_charset ) { @ mb_regex_encoding ( $ old_charset ) ; } return $ alpha ; }
docstring: Returns true if the every character in the parameter is an alphabetic
  character.
  
  @param string $string   The string to test.
  @param string $charset  The charset to use when testing the string.
  
  @return boolean  True if the parameter was alphabetic only.
docstring_tokens: Returns true if the every character in the parameter is an alphabetic character .