static function Length(&$text,$charset){
		$charset = self::_GetCharsetByName($charset);
		switch($charset){
			case "utf8":
				return self::_LengthUtf8($text);
			default:
				return strlen($text);
		}
	}
static function Length(&$text,$charset){
		$charset = self::_GetCharsetByName($charset);
		switch($charset){
			case "utf8":
				return self::_LengthUtf8($text);
			default:
				return strlen($text);
		}
	}
static function Length ( & $ text , $ charset ) { $ charset = self :: _GetCharsetByName ( $ charset ) ; switch ( $ charset ) { case "utf8" : return self :: _LengthUtf8 ( $ text ) ; default : return strlen ( $ text ) ; } }
Counts length of a string.

@param string $text
@param string $charset
@return integer
Counts length of a string .