array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'pt_BR', ), 'this' => array ( 0 => 'function.enchant-broker-dict-exists.php', 1 => 'enchant_broker_dict_exists', ), 'up' => array ( 0 => 'ref.enchant.php', 1 => 'Enchant Funções', ), 'prev' => array ( 0 => 'function.enchant-broker-describe.php', 1 => 'enchant_broker_describe', ), 'next' => array ( 0 => 'function.enchant-broker-free-dict.php', 1 => 'enchant_broker_free_dict', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/enchant/functions/enchant-broker-dict-exists.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL enchant >= 0.1.0 )
enchant_broker_dict_exists — Whether a dictionary exists or not. Using non-empty tag
Tells if a dictionary exists or not, using a non-empty tags
broker
Um agente Enchant retornado por enchant_broker_init().
tag
non-empty tag in the LOCALE format, ex: us_US, ch_DE, etc.
Versão | Descrição |
---|---|
8.0.0 |
O parâmetro broker agora espera uma instância de EnchantBroker;
anteriormente, um resource era esperado.
|
Exemplo #1 A enchant_broker_dict_exists() example
<?php
$tag = 'en_US';
$r = enchant_broker_init();
if (enchant_broker_dict_exists($r,$tag)) {
echo $tag . " dictionary found.\n";
}
?>