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
class Transliterator {
/* Constants */
/* Properties */
/* Methods */
public static createFromRules(string
}$rules, int $direction = Transliterator::FORWARD): ?TransliteratorProperties
- id
Predefined Constants
Changelog
| Version | Description |
|---|---|
| 8.4.0 | The class constants are now typed. |
| 8.2.0 | The id property is now readonly. |
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
↑ and ↓ to navigate • Enter to select • Esc to close • / to open