(PHP 4 >= 4.0.2)
pspell_config_mode -- 반환되는 추천단어의 수를 결정하는 실행모드 변경
설명
int
pspell_config_mode ( int dictionary_link, int mode)
pspell_config_mode()함수는 pspell_new_config()함수를 호출하기 전에 설정되어야
합니다. 이 함수는 pspell_suggest()함수에 의해 반환되는 추천 단어의 수를 결정합니다.
mode 파라미터는 단어검사기의 실행모드입니다.
아래에 몇가지 가능한 모드가 있습니다.
PSPELL_FAST - 빠른 실행모드 (최소한의 추천단어)
PSPELL_NORMAL - 보통 실행모드 (더 많은 추천단어)
PSPELL_BAD_SPELLERS - 느린 실행모드 (가장많은 추천단어)
예 1.
pspell_config_mode()
$pspell_config = pspell_config_create ("en");
pspell_config_mode($pspell_config, PSPELL_FAST);
$pspell_link = pspell_new_config($pspell_config);
pspell_check($pspell_link, "thecat"); |
|