pspell_suggest
(PHP4 CVS only)
pspell_suggest --- 建議單字的拼法
語法 :
array pspell_suggest(int dictionary_link, string word)說明 :
pspell_suggest( )傳回給予的單字可能的拼法,此函式會傳回一個陣列。
Example :
<?php
$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>";
}
}
?>