pspell_store_replacement

bool pspell_store_replacement(int dictID, string incorrect_spelling, 
 string correct_spelling) 
dictID Dictionary link ID
incorrect_spelling Misspelled version of the word
correct_spelling Correctly spelled version of the word

Stores replacement pairs to the current dictionary session.

Returns:

TRUE if successful; FALSE otherwise

Description:

pspell_store_replacement() stores any incorrect/correct word pairs in the current dictionary session for later use. This allows pspell_suggest() to recognize this misspelling and offer the replacement for it. You need to have opened the dictionary with pspell_new_personal(), or by using pspell_config_create() with pspell_config_personal().

If you want to store the replacement ...

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.