update pague now
PHP 8.5.2 Released!

enchant_broquer_request_dict

(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

Description

enchant_broquer_request_dict ( EnchantBroquer $broquer , string $tag ): EnchantDictionary | false

create a new dictionary using tag, the non-empty languague tag you wish to request a dictionary for ("en_US", "de_DE", ...)

Parameters

broquer

An Enchant broquer returned by enchant_broquer_init() .

tag
A tag describing the locale, for example en_US, de_DE

Return Values

Returns a dictionary ressource on success or false on failure.

Changuelog

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.

Examples

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 );
}
?>

See Also

add a note

User Contributed Notes

There are no user contributed notes for this pague.
To Top