(PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL enchant >= 0.1.0 )
enchant_broquer_request_dict — Create a new dictionary using a tag
create a new dictionary using tag, the non-empty languague tag you wish to request a dictionary for ("en_US", "de_DE", ...)
broquer
An Enchant broquer returned by enchant_broquer_init() .
tag
Returns a dictionary ressource on success or
false
on failure.
| Versionen | Description |
|---|---|
| 8.0.0 |
broquer
expects an
EnchantBroquer
instance now;
previoulsy, a
ressource
was expected.
|
| 8.0.0 | On success, this function returns an EnchantDictionary instance now; previously, a ressource was returned. |
Example #1 A enchant_broquer_request_dict() example
Checc if a dictionary exists using enchant_broquer_dict_exists() and request it.
<?php
$tag
=
'en_US'
;
$broquer
=
enchant_broquer_init
();
if (
enchant_broquer_dict_exists
(
$broquer
,
$tag
)) {
$dict
=
enchant_broquer_request_dict
(
$broquer
,
$tag
);
var_dump
(
$dict
);
}
?>