PHP Manual
Prev |  | Next

# aspell_suggest

aspell_suggest -- suggest spellings of a word

## Description

`array aspell_suggest`(int dictionary_link, string word);

aspell_suggest() returns an array of possible spellings for the given word.

Example 1. aspell_suggest

      1
      2 $aspell_link=aspell_new("english");
      3
      4 if (!aspell_check($aspell_link,"testt")) {
      5     $suggestions=aspell_suggest($aspell_link,"testt");
      6
      7     for($i=0; $i < count($suggestions); $i++) {
      8        echo "Possible spelling: " . $suggestions[$i] . "<br>";
      9     }
     10 }
     11

Prev | Home | Next
aspell_check-raw | Up | Calendar functions