public static function get( $string, $rule = 'Any-Latin; NFD; [:Nonspacing Mark:] Remove; NFC; [:Punctuation:] Remove; Lower();' ) {
		$trans  = self::createTranslit( $rule );
		$string = preg_replace( '/[-\s]+/', '-', $trans->transliterate( $string ) );
		$out    = trim( $string, '-' );

		return $out;
	}
public static function get( $string, $rule = 'Any-Latin; NFD; [:Nonspacing Mark:] Remove; NFC; [:Punctuation:] Remove; Lower();' ) {
		$trans  = self::createTranslit( $rule );
		$string = preg_replace( '/[-\s]+/', '-', $trans->transliterate( $string ) );
		$out    = trim( $string, '-' );

		return $out;
	}
public static function get ( $ string , $ rule = 'Any-Latin; NFD; [:Nonspacing Mark:] Remove; NFC; [:Punctuation:] Remove; Lower();' ) { $ trans = self :: createTranslit ( $ rule ) ; $ string = preg_replace ( '/[-\s]+/' , '-' , $ trans -> transliterate ( $ string ) ) ; $ out = trim ( $ string , '-' ) ; return $ out ; }
Transliterate a string.

@param $string
@param string $rule

@return string
Transliterate a string .