aspell_suggest
(PHP 4 <= 4.2.3)
aspell_suggest — 建議單字的正確拼法
Description
array aspell_suggest
( int $dictionary_link
, string $word
)
aspell_suggest() 傳回個陣列, 當中存放了就提供給它的單字所找到的可能拼法。
Example#1 aspell_suggest()
$aspell_link=aspell_new ("english");
if (!aspell_check ($aspell_link, "test")) {
$suggestions=aspell_suggest ($aspell_link, "test");
for ($i=0; $i < count ($suggestions); $i++) {
echo "Possible spelling: " . $suggestions[$i] . "<br>";
}
}