Forum und email

pspell_new_config

(PHP 4 >= 4.0.2, PHP 5)

pspell_new_config — 주어진 설정으로 새 사전 열기

설명

int pspell_new_config ( int $config )

pspell_new_config()함수는 pspell_config_create()함수에 의해서 생성되고, pspell_config_*()함수로 수정된 설정을 사용해서 새 사전을 엽니다. 이 방법은 가장 융통성이 있고,pspell_new()함수와 pspell_new_personal()함수에 의해 제공되는 모든 기능을 을 제공합니다.

config 파라미터는 설정이 생성될 때 pspell_config_create()함수에 의해 반환되는 것입니다.

Example#1 pspell_new_config()

$pspell_config = pspell_config_create ("en");
pspell_config_personal ($pspell_config, "/var/dictionaries/custom.pws");
pspell_config_repl ($pspell_config, "/var/dictionaries/custom.repl");
$pspell_link = pspell_new_personal (pspell_config);