Transliterator
class Transliterator (View source)
Constants
FORWARD |
|
REVERSE |
|
Properties
string | $id | Starting 8.2 $id is readonly to unlock subclassing it |
Methods
(PHP >= 5.4.0, PECL intl >= 2.0.0)
Create a transliterator
(PHP >= 5.4.0, PECL intl >= 2.0.0)
Create transliterator from rules
(PHP >= 5.4.0, PECL intl >= 2.0.0)
Create an inverse transliterator
(PHP >= 5.4.0, PECL intl >= 2.0.0)
Get transliterator IDs
(PHP >= 5.4.0, PECL intl >= 2.0.0)
Transliterate a string
(PHP >= 5.4.0, PECL intl >= 2.0.0)
Get last error code
(PHP >= 5.4.0, PECL intl >= 2.0.0)
Get last error message
Details
static Transliterator|null
create(string $id, int $direction = 0)
(PHP >= 5.4.0, PECL intl >= 2.0.0)
Create a transliterator
static Transliterator|null
createFromRules(string $rules, int $direction = 0)
(PHP >= 5.4.0, PECL intl >= 2.0.0)
Create transliterator from rules
Transliterator|null
createInverse()
(PHP >= 5.4.0, PECL intl >= 2.0.0)
Create an inverse transliterator
static array|false
listIDs()
(PHP >= 5.4.0, PECL intl >= 2.0.0)
Get transliterator IDs
string|false
transliterate(string $string, int $start = 0, int $end = -1)
(PHP >= 5.4.0, PECL intl >= 2.0.0)
Transliterate a string
int|false
getErrorCode()
(PHP >= 5.4.0, PECL intl >= 2.0.0)
Get last error code
string|false
getErrorMessage()
(PHP >= 5.4.0, PECL intl >= 2.0.0)
Get last error message