pspell_suggest
(PHP 4 >= 4.0.2, PHP 5)
pspell_suggest -- 對單字的拼法作出建議
Description
array
pspell_suggest ( int dictionary_link, string word)
pspell_suggest() 傳回一個陣列, 其中包含了單字的所有可能拼法。
示範 1.pspell_suggest()
$pspell_link = pspell_new ("en");
if (!pspell_check ($pspell_link, "testt")) { $suggestions = pspell_suggest ($pspell_link, "testt");
for ($i=0; $i < count ($suggestions); $i++) { echo "Possible spelling: " . $suggestions[$i] . "<br>"; } }
|
|