enchant_dict_quick_check

PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL enchant:0.2.0-1.0.1
enchant_dict_quick_check - Check the word is correctly spelled and provide suggestions
Manual
Code Examples

enchant_dict_quick_check(
     EnchantDictionary$dictionary,
     string$word,
     [arraysuggestions = null]
): bool

If the word is correctly spelled return true, otherwise return false, if suggestions variable is provided, fill it with spelling alternatives.

Parameters

dictionary

An Enchant dictionary returned by enchant_broker_request_dict or enchant_broker_request_pwl_dict.

word

The word to check

suggestions

If the word is not correctly spelled, this variable will contain an array of suggestions.

Return Values

Returns true if the word is correctly spelled or false

Changelog

Version Description
8.0.0 dictionary expects an EnchantDictionary instance now; previoulsy, a resource was expected.

Related Functions

Example of enchant_dict_quick_check

Show all examples for enchant_dict_quick_check

PHP Version: