ENCHANT_BROKER_DICT_EXISTS(3) 1 ENCHANT_BROKER_DICT_EXISTS(3)
enchant_broker_dict_exists - Whether a dictionary exists or not. Using non-empty tag
SYNOPSIS
bool enchant_broker_dict_exists (resource $broker, string $tag)
DESCRIPTION
Tells if a dictionary exists or not, using a non-empty tags
PARAMETERS
o $broker
- Broker resource
o $tag
- non-empty tag in the LOCALE format, ex: us_US, ch_DE, etc.
RETURN VALUES
Returns TRUE when the tag exist or FALSE when not.
EXAMPLES
Example #1
A enchant_broker_dict_exists(3) example
<?php
$tag = 'en_US';
$r = enchant_broker_init();
if (enchant_broker_dict_exists($r,$tag)) {
echo $tag . " dictionary found.
";
}
?>
SEE ALSO
enchant_broker_describe(3).
PHP Documentation Group ENCHANT_BROKER_DICT_EXISTS(3)