pspell_new_config

int pspell_new_config(int configid) 

Creates a link to a Pspell dictionary to be used in subsequent operations.

Returns:

If successful, a positive integer identifier for the Pspell dictionary opened; FALSE if an error occurs

Description:

This function takes as its single argument the configuration link given as the result of a successful call to pspell_config_create(). Based on this configuration, a link to a Pspell dictionary is created and returned.

Example:

Create a dictionary link from a configuration
$config_id = pspell_config_create('en'); 
pspell_config_runtogether($config_id, TRUE); 
$dict_id = pspell_new_config($config_id); 

if (pspell_check($dict_id, 'phonecall')) {
    echo "Correct"; 
} else {
    echo "Incorrect"; 
} 

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.