enchant_dict_check
PHP Manual
PHP Manual»Функції Enchant»enchant_dict_check

enchant_dict_check

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

enchant_dict_checkCheck 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.

Журнал змін

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