Home > PHP > Function > Enchant > enchant_dict_quick_check()

enchant_dict_quick_check()

enchant_dict_quick_check - Check the word is correctly spelled and provide suggestions

Syntax

bool enchant_dict_quick_check (resource $dict, string $word, array &$suggestions)

Arguments

  • dict - Dictionary resource
  • word - The word to check
  • suggestions - If the word is not correctly spelled, this variable will contain an array of suggestions.

Description

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

Version

PHP PECL enchant:0.2.0-1.0.1

Return value

Returns TRUE if the word is correctly spelled or FALSE