intl
PHP 手册

The Transliterator class

(PHP >= 5.4.0, PECL intl >= 2.0.0)

简介

Transliterator provides transliteration of strings.

类摘要

Transliterator {
/* 常量 */
const integer FORWARD = 0 ;
const integer REVERSE = 1 ;
/* 属性 */
public $id ;
/* 方法 */
__construct ( void )
public static Transliterator create ( string $id [, int $direction ] )
public static Transliterator createFromRules ( string $rules [, string $direction ] )
public Transliterator createInverse ( void )
public int getErrorCode ( void )
public string getErrorMessage ( void )
public static array listIDs ( void )
public string transliterate ( string $subject [, int $start [, int $end ]] )
}

属性

id

预定义常量

Transliterator::FORWARD

Transliterator::REVERSE

Table of Contents


intl
PHP 手册