September 2001
Intermediate to advanced
768 pages
32h 45m
English
bool pspell_clear_session(int dictID) Clears all words from the current session’s wordlist.
Returns:
TRUE if successful; FALSE otherwise
Description:
pspell_clear_session() empties the personal wordlist from a dictionary link which has been populated with pspell_new_personal() or by using pspell_config_create(), pspell_config_personal(), and pspell_new_config() together. This has no effect on the main (non-personal) dictionary wordlist.
Example:
/* Load a wordlist and empty it before use. */
$dictid = pspell_new_personal('/home/torben/personal.pws', 'en', 'canadian');
pspell_clear_session($dictid);
|
Read now
Unlock full access