(PHP 5 >= 5.3.0, PHP 7, PECL enchant >= 1.0.1)
enchant_broker_list_dicts — Devuelve una lista de los diccionarios disponibles
Devuelve una lista de los diccionarios disponibles con sus detalles.
broker
Recurso de agente
Devuelve un array de los diccionarios disponibles con sus detalles, o FALSE
en caso de error.
Ejemplo #1 Listar todos los diccionarios disponibles para un agente
<?php
$r = enchant_broker_init();
$diccionarios = enchant_broker_list_dicts($r);
print_r($diccionarios);
?>
El resultado del ejemplo sería algo similar a:
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 ) )