aspell_suggest
(PHP 4 <= 4.2.3)
aspell_suggest — Sugere escritas para uma palavra [obsoleta]
Descrição
array aspell_suggest
( int $dictionary_link
, string $word
)
aspell_suggest() sugere correções para a word (palavra) dada.
Parâmetros
- dictionary_link
-
O identificador de dicionário retornado por aspell_new().
- word
-
A palavra testada.
Valor Retornado
Retorna uma array de sugestões.
Exemplos
Example#1 Exemplo aspell_suggest()
<?php
$aspell_link = aspell_new("english");
if (!aspell_check($aspell_link, "test")) {
$suggestions = aspell_suggest($aspell_link, "test");
foreach ($suggestions as $suggestion) {
echo "Possible spelling: $suggestion<br />\n";
}
}
?>