pspell_add_to_session

bool pspell_add_to_session(int dictID, string word) 

Adds a word to the active wordlist for a session.

Returns:

TRUE if successful; FALSE otherwise

Description:

This function adds a new word to the session wordlist associated with the dictionary ID given by dictID . If used on a dictionary link opened with pspell_new(), words added in this fashion cannot be saved to disk. To do so you will need to either open or create a personal wordlist; for instance, by using pspell_new_personal().

Example:

Add a word to the wordlist
$dictid = pspell_new('en'); 
pspell_add_to_session($dictid, 'Tralfamador'); 

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.