pspell_config_mode

(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 파라미터는 단어검사기의 실행모드입니다. 아래에 몇가지 가능한 모드가 있습니다.

예 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");