The Transliterator class
(PHP 5 >= 5.4.0, PHP 7, PHP 8, PECL intl >= 2.0.0)
Introduction
Transliterator provides transliteration of strings.
Class synopsis
$rules
, int $direction
= Transliterator::FORWARD): ?TransliteratorProperties
- id
Predefined Constants
Transliterator::FORWARD
Transliterator::REVERSE
Table of Contents
- Transliterator::__construct — Private constructor to deny instantiation
- Transliterator::create — Create a transliterator
- Transliterator::createFromRules — Create transliterator from rules
- Transliterator::createInverse — Create an inverse transliterator
- Transliterator::getErrorCode — Get last error code
- Transliterator::getErrorMessage — Get last error message
- Transliterator::listIDs — Get transliterator IDs
- Transliterator::transliterate — Transliterate a string