(PHP 4 >= 4.0.2, PHP 5, PHP 7, PHP 8)
pspell_save_wordlist — 儲存個人詞彙表到檔案
pspell_save_wordlist() 會儲存目前工作階段的個人詞彙表。儲存檔案的位置是使用 pspell_config_personal() 和(可選)pspell_config_repl() 指定的。
版本 | 說明 |
---|---|
8.1.0 | dictionary 參數現在需要一個 PSpell\Dictionary 實例;先前需要的是 資源。 |
範例 #1 pspell_add_to_personal()
<?php
$pspell_config = pspell_config_create("en");
pspell_config_personal($pspell_config, "/tmp/dicts/newdict");
$pspell = pspell_new_config($pspell_config);
pspell_add_to_personal($pspell, "Vlad");
pspell_save_wordlist($pspell);
?>
注意:
除非您擁有 pspell .11.2 和 aspell .32.5 或更高版本,否則此函式將無法運作。