CakeFest 2024: The Official CakePHP Conference

enchant_broker_dict_exists

(PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL enchant >= 0.1.0 )

enchant_broker_dict_existsVérifie si un dictionnaire existe

Description

enchant_broker_dict_exists(EnchantBroker $broker, string $tag): bool

Vérifie si un dictionnaire existe.

Liste de paramètres

broker

Un courtier Enchant retourné par enchant_broker_init().

tag

langage, dans un format comme us_US, ch_DE, etc.

Valeurs de retour

Retourne true si le langage existe, false sinon.

Historique

Version Description
8.0.0 broker attend désormais une instance de EnchantBroker ; auparavant, une ressource était attendu.

Exemples

Exemple #1 Exemple avec enchant_broker_dict_exists()

<?php
$tag
= 'en_US';
$r = enchant_broker_init();
if (
enchant_broker_dict_exists($r,$tag)) {
echo
$tag . " dictionary found.\n";
}
?>

Voir aussi

add a note

User Contributed Notes

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