PHP 手册
上一页 |  | 下一页

# enchant_broker_list_dicts

(no version information, might be only in CVS)

enchant_broker_list_dicts -- Returns a list of available dictionaries

## 说明

mixed enchant_broker_list_dicts ( resource broker )

Returns a list of available dictionaries with their details.

## 参数

`broker`

  Broker resource

## 返回值

如果成功则返回 `TRUE`，失败则返回 `FALSE`。

## 范例

例 1. List all available dictionaries for one broker

`<?php $r = enchant_broker_init(); $dicts = enchant_broker_list_dicts($r); print_r($dicts); ?>`

上例的输出类似于：

    Array
    (
        [0] => Array
            (
                [lang_tag] => de
                [provider_name] => aspell
                [provider_desc] => Aspell Provider
                [provider_file] => /usr/lib/enchant/libenchant_aspell.so
            )

        [1] => Array
            (
                [lang_tag] => de_DE
                [provider_name] => aspell
                [provider_desc] => Aspell Provider
                [provider_file] => /usr/lib/enchant/libenchant_aspell.so
            )

        [3] => Array
            (
                [lang_tag] => en
                [provider_name] => aspell
                [provider_desc] => Aspell Provider
                [provider_file] => /usr/lib/enchant/libenchant_aspell.so
            )

        [4] => Array
            (
                [lang_tag] => en_GB
                [provider_name] => aspell
                [provider_desc] => Aspell Provider
                [provider_file] => /usr/lib/enchant/libenchant_aspell.so
            )

        [5] => Array
            (
                [lang_tag] => en_US
                [provider_name] => aspell
                [provider_desc] => Aspell Provider
                [provider_file] => /usr/lib/enchant/libenchant_aspell.so
            )

        [6] => Array
            (
                [lang_tag] => hi_IN
                [provider_name] => myspell
                [provider_desc] => Myspell Provider
                [provider_file] => /usr/lib/enchant/libenchant_myspell.so
            )

    )

## 参见

enchant_broker_describe ()

上一页 | 起始页 | 下一页
enchant_broker_init | 上一级 | enchant_broker_request_dict