PHP 手册
后退 |  | 前进

# CXVIII. Pspell Functions

# 简介

These functions allow you to check the spelling of a word and offer suggestions.

# 需求

To compile PHP with pspell support, you need the aspell library, available from http://aspell.sourceforge.net/.

# 安装

If you have the libraries needed add the --with-pspell[=dir] option when compiling PHP.

> Note to Win32 Users: win32 support is available only in PHP 4.3.3 and later versions. Also, you must have aspell 0.50 or newer installed. In order to enable this module under Windows, you must copy `aspell-15.dll` from the `bin` folder of your aspell installation to a folder where PHP will be able to find it. `C:\PHP` or the SYSTEM32 folder of your windows machine (Ex: `C:\WINNT\SYSTEM32` or `C:\WINDOWS\SYSTEM32`) are good choices.

# 运行时配置

本扩展模块在 `php.ini` 中未定义任何配置选项。

# 资源类型

本扩展模块未定义任何资源类型。

# 预定义常量

以下常量由本扩展模块定义，因此只有在本扩展模块被编译到 PHP 中，或者在运行时被动态加载后才有效。

`PSPELL_FAST` (integer)

`PSPELL_NORMAL` (integer)

`PSPELL_BAD_SPELLERS` (integer)

`PSPELL_RUN_TOGETHER` (integer)

后退 | 起点 | 前进
system | 上一级 | pspell_add_to_personal