Updated PHP Windows builds for Brotli security fix

enchant_dict_check

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

enchant_dict_check — Vérifie si un mot est correctement orthographié

Description

function enchant_dict_check(EnchantDictionary $dictionary, string $word): bool

Retourne true si le mot word est correctement orthographié, false sinon.

Liste de paramètres

dictionary

Un dictionnaire Enchant retourné par enchant_broker_request_dict() ou enchant_broker_request_pwl_dict().

word

Le mot à vérifier

Valeurs de retour

Retourne true si le mot est correctement orthographié, false sinon.

Erreurs / Exceptions

Lève une ValueError si dictionary n'est pas utilisable, par exemple s'il n'a pas été initialisé ou s'il a déjà été libéré avec enchant_broker_free_dict().

Historique

Version Description
8.0.0 dictionary attend désormais une instance de EnchantDictionary ; auparavant, une resource était attendue.
+add a note

User Contributed Notes

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