PHP - Manual: pspell_config_save_repl
2024-12-21
(PHP 4 >= 4.0.2, PHP 5, PHP 7, PHP 8)
pspell_config_save_repl — Determine whether to save a replacement pairs list along with the wordlist
pspell_config_save_repl() determines whether pspell_save_wordlist() will save the replacement pairs along with the wordlist. Usually there is no need to use this function because if pspell_config_repl() is used, the replacement pairs will be saved by pspell_save_wordlist() anyway, and if it is not, the replacement pairs will not be saved.
pspell_config_save_repl() should be used on a config before calling pspell_new_config().
config
An PSpell\Config instance.
save
true
if replacement pairs should be saved, false
otherwise.
成功时返回 true
, 或者在失败时返回 false
。
版本 | 说明 |
---|---|
8.1.0 |
The config parameter expects an PSpell\Config
instance now; previously, a 资源(resource) was expected.
|
注意:
This function will not work unless you have pspell .11.2 and aspell .32.5 or later.
官方地址:https://www.php.net/manual/en/function.pspell-config-save-repl.php