Transliterator クラス

(PHP 5 >= 5.4.0, PHP 7, PHP 8, PECL intl >= 2.0.0)

はじめに

Transliterator クラスは、文字列の音訳を行います。

クラス概要

Transliterator {
/* 定数 */
const int FORWARD = 0 ;
const int REVERSE = 1 ;
/* プロパティ */
public $id;
/* メソッド */
private __construct()
public static create(string $id, int $direction = ?): Transliterator
public static createFromRules(string $rules, string $direction = ?): Transliterator
public getErrorCode(): int
public getErrorMessage(): string
public static listIDs(): array|false
public transliterate(string $subject, int $start = ?, int $end = ?): string|false
}

プロパティ

id

定義済み定数

Transliterator::FORWARD

Transliterator::REVERSE

目次

add a note add a note

User Contributed Notes 1 note

To Top