(PHP 4 >= 4.0.2)
pspell_save_wordlist -- 사용자 단어목록을 파일로 저장
설명
int
pspell_save_wordlist ( int dictionary_link)
pspell_save_wordlist()함수는 현재 세션의 사용자 단어목록을 저장합니다.
사전은 pspell_new_personal()함수를 사용해서 열고, 저장된
파일의 위치는 pspell_config_personal()함수를 사용해서 지정되어야 하고,
선택적으로pspell_config_repl()함수를 사용할수 있습니다.
이 함수는 pspell .11.2와 aspell .32.5 또는 이후의 버전에서만 실행됩니다.
예 1.
pspell_add_to_personal()
$pspell_config = pspell_config_create ("en");
pspell_config_personal ($pspell_config, "/tmp/dicts/newdict");
$pspell_link = pspell_new_config ($pspell_config);
pspell_add_to_personal ($pspell_link, "Vlad");
pspell_save_wordlist ($pspell_link); |
|