pspell_add_to_personal
pspell_add_to_personal
Add the word to a personal wordlist
bool **pspell_add_to_personal** PSpell\Dictionary $dictionary string $word
adds a word to the personal
wordlist. If you used with
to open the dictionary,
you can save the wordlist later with
.
pspell_add_to_personal``pspell_new_config``pspell_config_personal``pspell_save_wordlist
dictionary``wordThe added word.
return.success
<?php
$pspell_config = pspell_config_create("en");
pspell_config_personal($pspell_config, "/var/dictionaries/custom.pws");
$pspell = pspell_new_config($pspell_config);
pspell_add_to_personal($pspell, "Vlad");
pspell_save_wordlist($pspell);
?>
Opmerking: > This function will not work unless you have pspell .11.2 and aspell .32.5 or later.