Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : enchant Functions : enchant_broker_list_dicts

enchant_broker_list_dicts

Returns a list of available dictionaries (PECL enchant:1.0.1)
mixed enchant_broker_list_dicts ( resource broker )

Example 584. List all available dictionaries for one broker

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

The above example will output something similar to:

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
       )

)

Change Language


Follow Navioo On Twitter
enchant_broker_describe
enchant_broker_dict_exists
enchant_broker_free_dict
enchant_broker_free
enchant_broker_get_error
enchant_broker_init
enchant_broker_list_dicts
enchant_broker_request_dict
enchant_broker_request_pwl_dict
enchant_broker_set_ordering
enchant_dict_add_to_personal
enchant_dict_add_to_session
enchant_dict_check
enchant_dict_describe
enchant_dict_get_error
enchant_dict_is_in_session
enchant_dict_quick_check
enchant_dict_store_replacement
enchant_dict_suggest
eXTReMe Tracker