略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: Transliterator::listIDs

2024-11-14

Transliterator::listIDs

transliterator_list_ids

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

Transliterator::listIDs -- transliterator_list_idsGet transliterator IDs

说明

面向对象风格

public static Transliterator::listIDs(): array|false

过程化风格

transliterator_list_ids(): array|false

Returns an array with the registered transliterator IDs.

参数

此函数没有参数。

返回值

An array of registered transliterator IDs on success, 或者在失败时返回 false.

范例

示例 #1 Retrieving the registered transliterator IDs

<?php
print_r
(Transliterator::listIDs());
?>

以上例程的输出类似于:

Array
(
    [0] => ASCII-Latin
    [1] => Accents-Any
    [2] => Amharic-Latin/BGN
    [3] => Any-Accents
    [4] => Any-Publishing
...
    [650] => Any-ps_Latn/BGN
    [651] => Any-tk/BGN
    [652] => Any-ch_FONIPA
    [653] => Any-cs_FONIPA
    [654] => Any-cy_FONIPA
)

参见

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/transliterator.listids.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3