O'Reilly logo

Core PHP Programming: Using PHP to Build Dynamic Web Sites by Leon Atkinson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Aspell

The Aspell library is used to verify the spelling of a word. It is the result of an open source project run by Kevin Atkinson. The official Web site is <http://metalab.unc.edu/kevina/aspell/>. In order for PHP to use Aspell, the functions must be loaded as an extension. At the time of this writing, no win32 extension existed for Aspell, so its functionality is available to UNIX users only. Mark Musone added Aspell support to PHP.

integer aspell_new(string dictionary, string personal_words)

Use aspell_new to load a dictionary into the system. An identifier is returned that must be used in subsequent calls to Aspell functions. The second argument is optional and specifies a personal dictionary.

 <? //create a test sentence $text = "Thiss ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required