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>";
}
}
?>