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 — Check whether a word is correctly spelled or not

Опис

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

If the word is correctly spelled return true, otherwise return false

Параметри

dictionary

Словник Enchant, якого повертає enchant_broker_request_dict() або enchant_broker_request_pwl_dict().

word

The word to check

Значення, що повертаються

Returns true if the word is spelled correctly, false if not.

Помилки/виключення

Throws a ValueError if dictionary is not usable, for example if it is uninitialized or was already released with enchant_broker_free_dict().

Журнал змін

Версія Опис
8.0.0 dictionary тепер має бути примірником класу EnchantDictionary; раніше очікувався resource.
+add a note

User Contributed Notes

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