The pspell() functions allow you to check the
spelling of a word and offer suggestions.
You need the aspell and pspell libraries, available from http://aspell.sourceforge.net/ and
http://aspell.net/ respectively, and
add the --with-pspell[=dir] option
when compiling php.