|
enchant_dict_quick_check(PHP 5 >= 5.3.0, PECL enchant:0.2.0-1.0.1) enchant_dict_quick_check — Check the word is correctly spelled and provide suggestions Описание
bool enchant_dict_quick_check
( resource $dict
, string $word
[, array &$suggestions
] )
If the word is correctly spelled return TRUE, otherwise return FALSE, if suggestions variable is provided, fill it with spelling alternatives. Список параметров
Возвращаемые значенияReturns TRUE if the word is correctly spelled or FALSE Примеры
Пример #1 A enchant_dict_quick_check() example
<?php Результатом выполнения данного примера будет что-то подобное: Array ( [0] => song [1] => snog [2] => soon [3] => Sang [4] => Sung [5] => sang [6] => sung [7] => sponge [8] => spongy [9] => snag [10] => snug [11] => sonic [12] => sing [13] => songs [14] => Son [15] => Sonja [16] => Synge [17] => son [18] => Sejong [19] => sarong [20] => sooner [21] => Sony [22] => sown [23] => scone [24] => song's ) Смотрите также
|
|