Transliterator::listIDs

transliterator_list_ids

Get transliterator IDs

Description

Object-oriented style

public static arrayfalse Transliterator::listIDs()

Procedural style

arrayfalse transliterator_list_ids()

Returns an array with the registered transliterator IDs.

Parameters

This function has no parameters.

Return Values

An array of registered transliterator IDs on success, or false on failure.

Examples

Example #1 Retrieving the registered transliterator IDs

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

The above example will output something similar to:

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
)

See Also

  • Transliterator::getErrorMessage
  • Transliterator::transliterate