pspell_clear_session
pspell_clear_session
Clear the current session
bool **pspell_clear_session** PSpell\Dictionary $dictionary
clears the current session.
The current wordlist becomes blank, and, for example, if you try to save
it with , nothing happens.
pspell_clear_session``pspell_save_wordlist
dictionary
return.success
Voorbeeld: Example
<?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_clear_session($pspell);
pspell_save_wordlist($pspell); //"Vlad" will not be saved
?>