PHP: Transliterator - Manual
(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 */
final private function __construct()
public static function create(string $id, int $direction = Transliterator::FORWARD): ?Transliterator
public static function createFromRules(string $rules, int $direction = Transliterator::FORWARD): ?Transliterator
public function createInverse(): ?Transliterator
public function getErrorCode(): int
public function getErrorMessage(): string
}
Properties
- id
Predefined Constants
Changelog
| Version | Description |
|---|---|
| 8.4.0 | The class constants are now typed. |
| 8.2.0 | The id property is now readonly. |