aspell_check

(PHP 3>= 3.0.7, PHP 4 >= 4.0.0)

aspell_check -- Überprüft ein Wort

Beschreibung

boolean aspell_check (int Wörterbuchkennung, string Wort)

aspell_check() überprüft die Rechtschreibung eines Wortes und liefert TRUE, wenn das Wort korrekt ist, ansonsten FALSE.

Beispiel 1. aspell_check


$aspell_link=aspell_new ("english");
if (aspell_check ($aspell_link, "test")) {
    echo "This is a valid spelling";
} else {
    echo "Sorry, wrong spelling";
}