pspell_clear_session

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:

Clear out a personal wordlist
/* Load a wordlist and empty it before use. */ 
$dictid = pspell_new_personal('/home/torben/personal.pws', 'en', 'canadian'); 
pspell_clear_session($dictid); 

Get PHP Functions Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.